From ee9b52b7d27863ef4bfba08f60e31a76fc109b2b Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 31 Jan 2022 19:45:31 +0100 Subject: [PATCH] build system: re-add -Wno-format as private flag for some components --- components/mqtt/CMakeLists.txt | 1 + components/mqtt/test/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) 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")