From d66f9dc15801c723d07e3dedd69b68e7e97e7a2e Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Tue, 12 Jul 2022 18:12:53 +0400 Subject: [PATCH] ignore format warnings --- components/asio/CMakeLists.txt | 1 + components/esp_websocket_client/CMakeLists.txt | 1 + components/esp_websocket_client/examples/main/CMakeLists.txt | 1 + components/mdns/CMakeLists.txt | 1 + components/mdns/examples/main/CMakeLists.txt | 1 + 5 files changed, 5 insertions(+) diff --git a/components/asio/CMakeLists.txt b/components/asio/CMakeLists.txt index 336654597..528308c9c 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 ee57f73d2..f013ad41d 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 bff26f108..a6a729e36 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 bdb439fce..44b259166 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 eb0e6d9eb..27c93ff5d 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")