diff --git a/components/asio/CMakeLists.txt b/components/asio/CMakeLists.txt index 33665459703..528308c9c7a 100644 --- a/components/asio/CMakeLists.txt +++ b/components/asio/CMakeLists.txt @@ -27,6 +27,7 @@ idf_component_register(SRCS ${asio_sources} INCLUDE_DIRS "asio/asio/include" "port/include" PRIV_INCLUDE_DIRS ${asio_priv_includes} REQUIRES lwip) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") if(CONFIG_ASIO_SSL_SUPPORT) if(CONFIG_ASIO_USE_ESP_WOLFSSL) diff --git a/components/esp_websocket_client/CMakeLists.txt b/components/esp_websocket_client/CMakeLists.txt index ee57f73d2fb..f013ad41d43 100644 --- a/components/esp_websocket_client/CMakeLists.txt +++ b/components/esp_websocket_client/CMakeLists.txt @@ -10,3 +10,4 @@ idf_component_register(SRCS "esp_websocket_client.c" INCLUDE_DIRS "include" REQUIRES lwip esp-tls tcp_transport http_parser PRIV_REQUIRES esp_timer) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_websocket_client/examples/main/CMakeLists.txt b/components/esp_websocket_client/examples/main/CMakeLists.txt index bff26f10886..a6a729e3627 100644 --- a/components/esp_websocket_client/examples/main/CMakeLists.txt +++ b/components/esp_websocket_client/examples/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "websocket_example.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/mdns/CMakeLists.txt b/components/mdns/CMakeLists.txt index bdb439fce92..44b25916606 100644 --- a/components/mdns/CMakeLists.txt +++ b/components/mdns/CMakeLists.txt @@ -20,6 +20,7 @@ idf_component_register( PRIV_INCLUDE_DIRS "private_include" REQUIRES ${dependencies} PRIV_REQUIRES ${private_dependencies}) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") if(CONFIG_ETH_ENABLED) idf_component_optional_requires(PRIVATE esp_eth) diff --git a/components/mdns/examples/main/CMakeLists.txt b/components/mdns/examples/main/CMakeLists.txt index eb0e6d9eb4a..27c93ff5d22 100644 --- a/components/mdns/examples/main/CMakeLists.txt +++ b/components/mdns/examples/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mdns_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")