diff --git a/components/mqtt/CMakeLists.txt b/components/mqtt/CMakeLists.txt index fda5220..15aea3d 100644 --- a/components/mqtt/CMakeLists.txt +++ b/components/mqtt/CMakeLists.txt @@ -9,6 +9,7 @@ idf_component_register(SRCS "${srcs}" PRIV_INCLUDE_DIRS "esp-mqtt/lib/include" PRIV_REQUIRES esp_timer ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") if(TEST_BUILD) message(STATUS "building MOCKS") diff --git a/components/mqtt/test/CMakeLists.txt b/components/mqtt/test/CMakeLists.txt index 9ab0dfe..616d362 100644 --- a/components/mqtt/test/CMakeLists.txt +++ b/components/mqtt/test/CMakeLists.txt @@ -6,3 +6,4 @@ endif() idf_component_register(SRCS "${srcs}" PRIV_REQUIRES cmock test_utils mqtt nvs_flash app_update esp_eth esp_netif) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")