diff --git a/components/app_trace/test/CMakeLists.txt b/components/app_trace/test/CMakeLists.txt index dc24ac276d..0b2be0a790 100644 --- a/components/app_trace/test/CMakeLists.txt +++ b/components/app_trace/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock driver) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/app_update/test/CMakeLists.txt b/components/app_update/test/CMakeLists.txt index 5f8813fa5c..7afb247dc9 100644 --- a/components/app_update/test/CMakeLists.txt +++ b/components/app_update/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/bootloader_support/CMakeLists.txt b/components/bootloader_support/CMakeLists.txt index 0bb864fa11..42b8f85f49 100644 --- a/components/bootloader_support/CMakeLists.txt +++ b/components/bootloader_support/CMakeLists.txt @@ -148,3 +148,5 @@ endif() if(BOOTLOADER_BUILD) target_link_libraries(${COMPONENT_LIB} INTERFACE "-u abort") endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/bootloader_support/test/CMakeLists.txt b/components/bootloader_support/test/CMakeLists.txt index ffd8537197..16963ea6bb 100644 --- a/components/bootloader_support/test/CMakeLists.txt +++ b/components/bootloader_support/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock bootloader_support app_update) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/bt/CMakeLists.txt b/components/bt/CMakeLists.txt index bb26506909..47d99d3cb6 100644 --- a/components/bt/CMakeLists.txt +++ b/components/bt/CMakeLists.txt @@ -717,6 +717,8 @@ if(CONFIG_BT_ENABLED) "host/bluedroid/btc/profile/std/gatt/btc_gatt_util.c" "host/bluedroid/btc/profile/std/gatt/btc_gatts.c" PROPERTIES COMPILE_FLAGS -Wno-address-of-packed-member) + + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() if(CONFIG_BT_NIMBLE_MESH) diff --git a/components/bt/test/CMakeLists.txt b/components/bt/test/CMakeLists.txt index b703c5d776..180675d21d 100644 --- a/components/bt/test/CMakeLists.txt +++ b/components/bt/test/CMakeLists.txt @@ -2,4 +2,5 @@ if(CONFIG_BT_ENABLED OR CMAKE_BUILD_EARLY_EXPANSION) idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock nvs_flash bt esp_ringbuf) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() diff --git a/components/console/CMakeLists.txt b/components/console/CMakeLists.txt index b7789795f8..3c699c90e3 100644 --- a/components/console/CMakeLists.txt +++ b/components/console/CMakeLists.txt @@ -22,3 +22,6 @@ idf_component_register(SRCS "commands.c" INCLUDE_DIRS "." REQUIRES vfs PRIV_REQUIRES driver) + + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/console/test/CMakeLists.txt b/components/console/test/CMakeLists.txt index 01903c4f1c..4378949ec0 100644 --- a/components/console/test/CMakeLists.txt +++ b/components/console/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . PRIV_REQUIRES cmock test_utils console) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/CMakeLists.txt b/components/driver/CMakeLists.txt index 4e65c15274..729db55b13 100644 --- a/components/driver/CMakeLists.txt +++ b/components/driver/CMakeLists.txt @@ -125,3 +125,5 @@ else() REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support LDFRAGMENTS linker.lf) endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/test/CMakeLists.txt b/components/driver/test/CMakeLists.txt index dd163dc9d9..d428eb0b32 100644 --- a/components/driver/test/CMakeLists.txt +++ b/components/driver/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS . param_test touch_sensor_test dac_dma_test PRIV_INCLUDE_DIRS include param_test/include touch_sensor_test/include PRIV_REQUIRES cmock test_utils driver nvs_flash esp_serial_slave_link esp_timer esp_adc esp_event esp_wifi) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt index 22bdc0d96d..c7f16431cc 100644 --- a/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt @@ -4,3 +4,4 @@ set(srcs "test_app_main.c" idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt index 60f64e8760..fe200a444a 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "test_app_main.c" idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt index f8bd38290a..7acd36f508 100644 --- a/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "test_app_main.c" idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/test_apps/mcpwm/main/CMakeLists.txt b/components/driver/test_apps/mcpwm/main/CMakeLists.txt index 69804189bb..1a38f86ffa 100644 --- a/components/driver/test_apps/mcpwm/main/CMakeLists.txt +++ b/components/driver/test_apps/mcpwm/main/CMakeLists.txt @@ -16,3 +16,4 @@ endif() # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/efuse/CMakeLists.txt b/components/efuse/CMakeLists.txt index fdfe6ecaa1..4bac72e833 100644 --- a/components/efuse/CMakeLists.txt +++ b/components/efuse/CMakeLists.txt @@ -77,3 +77,5 @@ set(EFUSE_TEST_TABLE_CSV_PATH "${COMPONENT_DIR}/test/esp_efuse_test_table.csv") add_custom_target(efuse_test_table COMMAND "${python}" "${CMAKE_CURRENT_SOURCE_DIR}/efuse_table_gen.py" ${EFUSE_TEST_TABLE_CSV_PATH} ${GEN_EFUSE_TABLE_ARG}) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/efuse/test/CMakeLists.txt b/components/efuse/test/CMakeLists.txt index 2433aab244..8181bbe86d 100644 --- a/components/efuse/test/CMakeLists.txt +++ b/components/efuse/test/CMakeLists.txt @@ -16,3 +16,4 @@ idf_component_register(SRC_DIRS "${src_dirs}" PRIV_INCLUDE_DIRS "." "${dir}/include" "../private_include" "../${target}/private_include" PRIV_REQUIRES cmock test_utils efuse bootloader_support esp_timer ) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp-tls/test/CMakeLists.txt b/components/esp-tls/test/CMakeLists.txt index 452d0b2c0e..049495b636 100644 --- a/components/esp-tls/test/CMakeLists.txt +++ b/components/esp-tls/test/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRC_DIRS "." PRIV_REQUIRES test_utils esp-tls) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_adc/CMakeLists.txt b/components/esp_adc/CMakeLists.txt index 35d5a68737..48939d92ac 100644 --- a/components/esp_adc/CMakeLists.txt +++ b/components/esp_adc/CMakeLists.txt @@ -31,3 +31,4 @@ idf_component_register(SRCS ${srcs} INCLUDE_DIRS ${includes} PRIV_REQUIRES driver efuse LDFRAGMENTS linker.lf) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_adc/test_apps/adc/main/CMakeLists.txt b/components/esp_adc/test_apps/adc/main/CMakeLists.txt index 85bbc4bb8e..e599f6328a 100644 --- a/components/esp_adc/test_apps/adc/main/CMakeLists.txt +++ b/components/esp_adc/test_apps/adc/main/CMakeLists.txt @@ -9,3 +9,4 @@ set(srcs "test_app_main.c" # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_common/test/CMakeLists.txt b/components/esp_common/test/CMakeLists.txt index ba65b322fd..fda9761c14 100644 --- a/components/esp_common/test/CMakeLists.txt +++ b/components/esp_common/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS . PRIV_REQUIRES cmock test_utils spi_flash esp_psram ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_eth/CMakeLists.txt b/components/esp_eth/CMakeLists.txt index 9095c9449c..5b8c7c5720 100644 --- a/components/esp_eth/CMakeLists.txt +++ b/components/esp_eth/CMakeLists.txt @@ -52,6 +52,9 @@ idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ${include} REQUIRES esp_event # For using "ESP_EVENT_DECLARE_BASE" in header file PRIV_REQUIRES ${priv_requires}) +if(CONFIG_ETH_ENABLED) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") +endif() if(CONFIG_ETH_ENABLED) if(CONFIG_ETH_USE_SPI_ETHERNET) diff --git a/components/esp_eth/test/CMakeLists.txt b/components/esp_eth/test/CMakeLists.txt index 224cb8b48f..c90a0534ed 100644 --- a/components/esp_eth/test/CMakeLists.txt +++ b/components/esp_eth/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . PRIV_REQUIRES cmock test_utils esp_eth esp_http_client esp_netif EMBED_TXTFILES dl_espressif_com_root_cert.pem) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_eth/test_apps/main/CMakeLists.txt b/components/esp_eth/test_apps/main/CMakeLists.txt index ea0e846190..3c5afe17b8 100644 --- a/components/esp_eth/test_apps/main/CMakeLists.txt +++ b/components/esp_eth/test_apps/main/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "esp_eth_test.c" INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES unity esp_eth esp_netif) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_event/CMakeLists.txt b/components/esp_event/CMakeLists.txt index 00f325cb18..33b4850ad2 100644 --- a/components/esp_event/CMakeLists.txt +++ b/components/esp_event/CMakeLists.txt @@ -20,3 +20,5 @@ idf_component_register(SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires} LDFRAGMENTS linker.lf) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_event/test/CMakeLists.txt b/components/esp_event/test/CMakeLists.txt index c279ebfd42..c3840a7a37 100644 --- a/components/esp_event/test/CMakeLists.txt +++ b/components/esp_event/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS . ../private_include PRIV_REQUIRES cmock test_utils esp_event driver esp_timer) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_hid/CMakeLists.txt b/components/esp_hid/CMakeLists.txt index 5209d0ce3c..36841a9957 100644 --- a/components/esp_hid/CMakeLists.txt +++ b/components/esp_hid/CMakeLists.txt @@ -19,3 +19,5 @@ idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "${include_dirs}" PRIV_INCLUDE_DIRS "${priv_include_dirs}" REQUIRES esp_event bt) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_hid/test/CMakeLists.txt b/components/esp_hid/test/CMakeLists.txt index 75bf32cdcc..fa7a4e5216 100644 --- a/components/esp_hid/test/CMakeLists.txt +++ b/components/esp_hid/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." INCLUDE_DIRS "." REQUIRES cmock test_utils esp_hid) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_http_client/CMakeLists.txt b/components/esp_http_client/CMakeLists.txt index cc1f844cff..3a2dcef3e6 100644 --- a/components/esp_http_client/CMakeLists.txt +++ b/components/esp_http_client/CMakeLists.txt @@ -7,3 +7,5 @@ idf_component_register(SRCS "esp_http_client.c" # lwip is a public requirement because esp_http_client.h includes sys/socket.h REQUIRES lwip PRIV_REQUIRES tcp_transport http_parser) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_http_client/test/CMakeLists.txt b/components/esp_http_client/test/CMakeLists.txt index 1003916af6..a89a0394e6 100644 --- a/components/esp_http_client/test/CMakeLists.txt +++ b/components/esp_http_client/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils esp_http_client) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_http_server/CMakeLists.txt b/components/esp_http_server/CMakeLists.txt index 5c6a8ec0ec..6ec66da645 100644 --- a/components/esp_http_server/CMakeLists.txt +++ b/components/esp_http_server/CMakeLists.txt @@ -9,3 +9,5 @@ idf_component_register(SRCS "src/httpd_main.c" PRIV_INCLUDE_DIRS "src/port/esp32" "src/util" REQUIRES http_parser # for http_parser.h PRIV_REQUIRES lwip mbedtls esp_timer) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_http_server/test/CMakeLists.txt b/components/esp_http_server/test/CMakeLists.txt index 8f258b8332..616c9a94fe 100644 --- a/components/esp_http_server/test/CMakeLists.txt +++ b/components/esp_http_server/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils esp_http_server) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_https_ota/CMakeLists.txt b/components/esp_https_ota/CMakeLists.txt index 373707b132..cee9eb7620 100644 --- a/components/esp_https_ota/CMakeLists.txt +++ b/components/esp_https_ota/CMakeLists.txt @@ -2,3 +2,5 @@ idf_component_register(SRCS "src/esp_https_ota.c" INCLUDE_DIRS "include" REQUIRES esp_http_client bootloader_support PRIV_REQUIRES log app_update) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_hw_support/CMakeLists.txt b/components/esp_hw_support/CMakeLists.txt index e7c78d9a4e..71e063471c 100644 --- a/components/esp_hw_support/CMakeLists.txt +++ b/components/esp_hw_support/CMakeLists.txt @@ -65,3 +65,5 @@ if(NOT BOOTLOADER_BUILD) idf_component_optional_requires(PRIVATE esp_psram) endif() endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_hw_support/test/CMakeLists.txt b/components/esp_hw_support/test/CMakeLists.txt index 55407b0e2f..03d70c34c0 100644 --- a/components/esp_hw_support/test/CMakeLists.txt +++ b/components/esp_hw_support/test/CMakeLists.txt @@ -1,5 +1,6 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "${include_dirs}" PRIV_REQUIRES cmock test_utils esp_hw_support driver efuse esp_timer esp_psram) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") - target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5") +target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5") diff --git a/components/esp_lcd/CMakeLists.txt b/components/esp_lcd/CMakeLists.txt index a77acae0d9..4382f91ec1 100644 --- a/components/esp_lcd/CMakeLists.txt +++ b/components/esp_lcd/CMakeLists.txt @@ -21,6 +21,7 @@ idf_component_register(SRCS ${srcs} INCLUDE_DIRS ${includes} PRIV_REQUIRES ${priv_requires} LDFRAGMENTS linker.lf) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") if(CONFIG_SPIRAM) idf_component_optional_requires(PRIVATE esp_psram) diff --git a/components/esp_lcd/test_apps/rgb_lcd/main/CMakeLists.txt b/components/esp_lcd/test_apps/rgb_lcd/main/CMakeLists.txt index ade68f9236..f694abfeab 100644 --- a/components/esp_lcd/test_apps/rgb_lcd/main/CMakeLists.txt +++ b/components/esp_lcd/test_apps/rgb_lcd/main/CMakeLists.txt @@ -5,3 +5,4 @@ set(srcs "test_app_main.c" # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_local_ctrl/CMakeLists.txt b/components/esp_local_ctrl/CMakeLists.txt index d71ac890df..ef9024913a 100644 --- a/components/esp_local_ctrl/CMakeLists.txt +++ b/components/esp_local_ctrl/CMakeLists.txt @@ -24,3 +24,5 @@ idf_component_register(SRCS "${srcs}" PRIV_REQUIRES protobuf-c) idf_component_optional_requires(PRIVATE espressif__mdns mdns) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_netif/CMakeLists.txt b/components/esp_netif/CMakeLists.txt index 3f2295f367..663a41648a 100644 --- a/components/esp_netif/CMakeLists.txt +++ b/components/esp_netif/CMakeLists.txt @@ -54,3 +54,5 @@ idf_component_register(SRCS "${srcs}" if(CONFIG_ESP_NETIF_L2_TAP OR CONFIG_ESP_NETIF_BRIDGE_EN) idf_component_optional_requires(PRIVATE esp_eth vfs) endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_netif/test/CMakeLists.txt b/components/esp_netif/test/CMakeLists.txt index 270dc340bc..d5a16fbe4e 100644 --- a/components/esp_netif/test/CMakeLists.txt +++ b/components/esp_netif/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "../private_include" "." PRIV_REQUIRES cmock test_utils esp_netif nvs_flash driver esp_eth esp_wifi) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_phy/CMakeLists.txt b/components/esp_phy/CMakeLists.txt index 04524d2176..10550e7fd8 100644 --- a/components/esp_phy/CMakeLists.txt +++ b/components/esp_phy/CMakeLists.txt @@ -112,3 +112,5 @@ if(CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION) esptool_py_flash_target_image(${phy_name}-flash ${phy_name} "${phy_partition_offset}" "${phy_init_data_bin}") esptool_py_flash_target_image(flash ${phy_name} "${phy_partition_offset}" "${phy_init_data_bin}") endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_phy/test/CMakeLists.txt b/components/esp_phy/test/CMakeLists.txt index 69dc92a8b8..001c9ac36e 100644 --- a/components/esp_phy/test/CMakeLists.txt +++ b/components/esp_phy/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR} PRIV_REQUIRES cmock test_utils nvs_flash ulp esp_common esp_phy esp_wifi ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_pm/test/CMakeLists.txt b/components/esp_pm/test/CMakeLists.txt index 34851aeb16..27ca808e7a 100644 --- a/components/esp_pm/test/CMakeLists.txt +++ b/components/esp_pm/test/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRC_DIRS . PRIV_REQUIRES unity esp_pm ulp driver esp_timer test_utils) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_psram/test_apps/psram/main/CMakeLists.txt b/components/esp_psram/test_apps/psram/main/CMakeLists.txt index 7fa3034028..2b91168afb 100644 --- a/components/esp_psram/test_apps/psram/main/CMakeLists.txt +++ b/components/esp_psram/test_apps/psram/main/CMakeLists.txt @@ -11,3 +11,4 @@ endif() # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_ringbuf/test/CMakeLists.txt b/components/esp_ringbuf/test/CMakeLists.txt index 8014c0498c..b5fc2058f7 100644 --- a/components/esp_ringbuf/test/CMakeLists.txt +++ b/components/esp_ringbuf/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils esp_ringbuf driver) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_rom/test/CMakeLists.txt b/components/esp_rom/test/CMakeLists.txt index 00ab63e913..0edd942c0f 100644 --- a/components/esp_rom/test/CMakeLists.txt +++ b/components/esp_rom/test/CMakeLists.txt @@ -1,6 +1,7 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR} PRIV_REQUIRES cmock test_utils) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h" COMMAND xxd -i "logo.jpg" "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h" diff --git a/components/esp_serial_slave_link/CMakeLists.txt b/components/esp_serial_slave_link/CMakeLists.txt index e9cb0fed08..5375d478ee 100644 --- a/components/esp_serial_slave_link/CMakeLists.txt +++ b/components/esp_serial_slave_link/CMakeLists.txt @@ -7,3 +7,5 @@ idf_component_register(SRCS "essl.c" PRIV_INCLUDE_DIRS "." "include/esp_serial_slave_link" ) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_system/CMakeLists.txt b/components/esp_system/CMakeLists.txt index f2fff07446..620396fcfd 100644 --- a/components/esp_system/CMakeLists.txt +++ b/components/esp_system/CMakeLists.txt @@ -104,3 +104,5 @@ if(NOT BOOTLOADER_BUILD) idf_component_optional_requires(PRIVATE esp_psram) endif() endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_system/test/CMakeLists.txt b/components/esp_system/test/CMakeLists.txt index 04edbac786..f9dbdc04cf 100644 --- a/components/esp_system/test/CMakeLists.txt +++ b/components/esp_system/test/CMakeLists.txt @@ -19,3 +19,4 @@ idf_component_register(SRC_DIRS . EXCLUDE_SRCS "${excludes}" PRIV_INCLUDE_DIRS . PRIV_REQUIRES "${requires}") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_timer/test/CMakeLists.txt b/components/esp_timer/test/CMakeLists.txt index 5eb9546562..6aa2625098 100644 --- a/components/esp_timer/test/CMakeLists.txt +++ b/components/esp_timer/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "../private_include" PRIV_REQUIRES cmock test_utils esp_timer) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_wifi/CMakeLists.txt b/components/esp_wifi/CMakeLists.txt index 96b558787b..1323d51e3f 100644 --- a/components/esp_wifi/CMakeLists.txt +++ b/components/esp_wifi/CMakeLists.txt @@ -57,4 +57,6 @@ if(CONFIG_ESP32_WIFI_ENABLED) target_link_libraries(${COMPONENT_LIB} PUBLIC ${blob}) endforeach() endif() + + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() diff --git a/components/esp_wifi/test/CMakeLists.txt b/components/esp_wifi/test/CMakeLists.txt index f84cc64db2..19ee79286a 100644 --- a/components/esp_wifi/test/CMakeLists.txt +++ b/components/esp_wifi/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR} PRIV_REQUIRES cmock test_utils nvs_flash ulp esp_common esp_wifi esp_event ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/espcoredump/test/CMakeLists.txt b/components/espcoredump/test/CMakeLists.txt index 32c2b8226d..08873b6a8e 100644 --- a/components/espcoredump/test/CMakeLists.txt +++ b/components/espcoredump/test/CMakeLists.txt @@ -4,4 +4,5 @@ else() idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock nvs_flash test_utils) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() diff --git a/components/fatfs/CMakeLists.txt b/components/fatfs/CMakeLists.txt index 9ff1d79257..68489a2b64 100644 --- a/components/fatfs/CMakeLists.txt +++ b/components/fatfs/CMakeLists.txt @@ -14,3 +14,5 @@ idf_component_register(SRCS ${srcs} REQUIRES wear_levelling sdmmc PRIV_REQUIRES vfs ) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/fatfs/test/CMakeLists.txt b/components/fatfs/test/CMakeLists.txt index 7ca37bb0b7..518f57c83a 100644 --- a/components/fatfs/test/CMakeLists.txt +++ b/components/fatfs/test/CMakeLists.txt @@ -3,3 +3,4 @@ idf_component_register(SRC_DIRS . PRIV_REQUIRES cmock test_utils vfs fatfs EMBED_TXTFILES fatfs.img ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/freertos/test/CMakeLists.txt b/components/freertos/test/CMakeLists.txt index b2703d252f..6e81913af4 100644 --- a/components/freertos/test/CMakeLists.txt +++ b/components/freertos/test/CMakeLists.txt @@ -8,3 +8,4 @@ idf_component_register(SRC_DIRS integration/event_groups port PRIV_INCLUDE_DIRS . PRIV_REQUIRES cmock test_utils esp_system driver esp_timer) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/hal/CMakeLists.txt b/components/hal/CMakeLists.txt index 595161f8e6..0c21243325 100644 --- a/components/hal/CMakeLists.txt +++ b/components/hal/CMakeLists.txt @@ -176,6 +176,7 @@ idf_component_register(SRCS ${srcs} PRIV_INCLUDE_DIRS ${priv_include} REQUIRES soc esp_rom LDFRAGMENTS linker.lf) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") if(CONFIG_HAL_DEFAULT_ASSERTION_LEVEL EQUAL 1) target_link_libraries(${COMPONENT_LIB} INTERFACE "-u abort") diff --git a/components/hal/test/CMakeLists.txt b/components/hal/test/CMakeLists.txt index a06f271e1a..144d832d98 100644 --- a/components/hal/test/CMakeLists.txt +++ b/components/hal/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "${include_dirs}" PRIV_REQUIRES cmock test_utils) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/heap/CMakeLists.txt b/components/heap/CMakeLists.txt index 66e32e9cee..316eb0d02a 100644 --- a/components/heap/CMakeLists.txt +++ b/components/heap/CMakeLists.txt @@ -58,3 +58,5 @@ if(NOT CMAKE_BUILD_EARLY_EXPANSION) target_compile_options(${COMPONENT_TARGET} PRIVATE "-DMULTI_HEAP_FREERTOS") endif() endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/heap/test/CMakeLists.txt b/components/heap/test/CMakeLists.txt index 6da69a0cbc..3ccce3753e 100644 --- a/components/heap/test/CMakeLists.txt +++ b/components/heap/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils heap) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/log/include/esp_log.h b/components/log/include/esp_log.h index a6eb53e565..e5cf473dda 100644 --- a/components/log/include/esp_log.h +++ b/components/log/include/esp_log.h @@ -9,6 +9,7 @@ #include #include +#include #include "sdkconfig.h" #include "esp_rom_sys.h" @@ -278,7 +279,7 @@ void esp_log_writev(esp_log_level_t level, const char* tag, const char* format, #define LOG_RESET_COLOR #endif //CONFIG_LOG_COLORS -#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%u) %s: " format LOG_RESET_COLOR "\n" +#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" #define LOG_SYSTEM_TIME_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%s) %s: " format LOG_RESET_COLOR "\n" /** @endcond */ diff --git a/components/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt index 6afc551a80..edcf16878f 100644 --- a/components/lwip/CMakeLists.txt +++ b/components/lwip/CMakeLists.txt @@ -185,3 +185,5 @@ endif() if(CONFIG_LWIP_DHCP_RESTORE_LAST_IP) idf_component_optional_requires(PRIVATE nvs_flash) endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/lwip/test/CMakeLists.txt b/components/lwip/test/CMakeLists.txt index 568494320b..d1d0882c5e 100644 --- a/components/lwip/test/CMakeLists.txt +++ b/components/lwip/test/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRC_DIRS "." PRIV_REQUIRES test_utils) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/mbedtls/test/CMakeLists.txt b/components/mbedtls/test/CMakeLists.txt index 5652212109..d51cbed59a 100644 --- a/components/mbedtls/test/CMakeLists.txt +++ b/components/mbedtls/test/CMakeLists.txt @@ -9,7 +9,7 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils mbedtls esp_timer EMBED_TXTFILES ${TEST_CRTS}) - +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") idf_component_get_property(mbedtls mbedtls COMPONENT_LIB) target_compile_definitions(${mbedtls} INTERFACE "-DMBEDTLS_DEPRECATED_WARNING") diff --git a/components/mqtt/CMakeLists.txt b/components/mqtt/CMakeLists.txt index fda522033b..15aea3d745 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 9ab0dfeff7..616d362045 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") diff --git a/components/newlib/test/CMakeLists.txt b/components/newlib/test/CMakeLists.txt index 13ea8fe340..cb3cf2f346 100644 --- a/components/newlib/test/CMakeLists.txt +++ b/components/newlib/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils driver esp_timer) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/nvs_flash/CMakeLists.txt b/components/nvs_flash/CMakeLists.txt index 304fa0d811..306f365547 100644 --- a/components/nvs_flash/CMakeLists.txt +++ b/components/nvs_flash/CMakeLists.txt @@ -33,3 +33,5 @@ if(CONFIG_NVS_ENCRYPTION) target_sources(${COMPONENT_LIB} PRIVATE "src/nvs_encrypted_partition.cpp") target_link_libraries(${COMPONENT_LIB} PRIVATE idf::mbedtls) endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/nvs_flash/test/CMakeLists.txt b/components/nvs_flash/test/CMakeLists.txt index 725e25e3da..bcfbbc2b59 100644 --- a/components/nvs_flash/test/CMakeLists.txt +++ b/components/nvs_flash/test/CMakeLists.txt @@ -2,6 +2,7 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils nvs_flash bootloader_support EMBED_TXTFILES encryption_keys.bin partition_encrypted.bin sample.bin) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") if(CONFIG_NVS_ENCRYPTION) target_link_libraries(${COMPONENT_LIB} PUBLIC idf::mbedtls) diff --git a/components/partition_table/test/CMakeLists.txt b/components/partition_table/test/CMakeLists.txt index ed052cc07f..9de17b084a 100644 --- a/components/partition_table/test/CMakeLists.txt +++ b/components/partition_table/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/perfmon/CMakeLists.txt b/components/perfmon/CMakeLists.txt index 21af896bb7..670f1c912b 100644 --- a/components/perfmon/CMakeLists.txt +++ b/components/perfmon/CMakeLists.txt @@ -10,3 +10,5 @@ set(xtensa_perfmon_srcs "xtensa_perfmon_access.c" idf_component_register(SRCS "${xtensa_perfmon_srcs}" INCLUDE_DIRS "include" REQUIRES "xtensa") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/perfmon/test/CMakeLists.txt b/components/perfmon/test/CMakeLists.txt index 5a9c72e8a4..c4a984da44 100644 --- a/components/perfmon/test/CMakeLists.txt +++ b/components/perfmon/test/CMakeLists.txt @@ -5,3 +5,6 @@ endif() idf_component_register(SRC_DIRS ${src_dirs} PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock xtensa perfmon) +if(CONFIG_IDF_TARGET_ARCH_XTENSA) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") +endif() diff --git a/components/protocomm/CMakeLists.txt b/components/protocomm/CMakeLists.txt index d98541d8f1..4c35f55eb5 100644 --- a/components/protocomm/CMakeLists.txt +++ b/components/protocomm/CMakeLists.txt @@ -48,3 +48,5 @@ idf_component_register(SRCS "${srcs}" PRIV_INCLUDE_DIRS "${priv_include_dirs}" PRIV_REQUIRES protobuf-c mbedtls console esp_http_server driver REQUIRES bt) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/protocomm/test/CMakeLists.txt b/components/protocomm/test/CMakeLists.txt index 1542683b45..1e618a976e 100644 --- a/components/protocomm/test/CMakeLists.txt +++ b/components/protocomm/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "../proto-c/" PRIV_REQUIRES cmock mbedtls protocomm protobuf-c test_utils) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/pthread/CMakeLists.txt b/components/pthread/CMakeLists.txt index da1d4235d1..1db395070e 100644 --- a/components/pthread/CMakeLists.txt +++ b/components/pthread/CMakeLists.txt @@ -20,3 +20,5 @@ endif() if(extra_link_flags) target_link_libraries(${COMPONENT_LIB} INTERFACE "${extra_link_flags}") endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/pthread/test/CMakeLists.txt b/components/pthread/test/CMakeLists.txt index 186c977c2a..17bc3e8954 100644 --- a/components/pthread/test/CMakeLists.txt +++ b/components/pthread/test/CMakeLists.txt @@ -6,3 +6,4 @@ set(sources "test_pthread.c" idf_component_register(SRCS ${sources} PRIV_REQUIRES cmock test_utils pthread esp_timer) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/riscv/project_include.cmake b/components/riscv/project_include.cmake index 98d8425094..eae28cd414 100644 --- a/components/riscv/project_include.cmake +++ b/components/riscv/project_include.cmake @@ -1,5 +1,3 @@ -set(compile_options "-Wno-error=format=" - "-nostartfiles" - "-Wno-format") +set(compile_options "-nostartfiles") idf_build_set_property(COMPILE_OPTIONS "${compile_options}" APPEND) diff --git a/components/sdmmc/CMakeLists.txt b/components/sdmmc/CMakeLists.txt index f6e8fe2b1e..b6b1ad4f18 100644 --- a/components/sdmmc/CMakeLists.txt +++ b/components/sdmmc/CMakeLists.txt @@ -7,3 +7,5 @@ idf_component_register(SRCS "sdmmc_cmd.c" INCLUDE_DIRS include REQUIRES driver PRIV_REQUIRES soc) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/sdmmc/test/CMakeLists.txt b/components/sdmmc/test/CMakeLists.txt index 0648951eec..edcf529ce1 100644 --- a/components/sdmmc/test/CMakeLists.txt +++ b/components/sdmmc/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock sdmmc test_utils ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/spi_flash/CMakeLists.txt b/components/spi_flash/CMakeLists.txt index 480149f958..260b353b48 100644 --- a/components/spi_flash/CMakeLists.txt +++ b/components/spi_flash/CMakeLists.txt @@ -84,4 +84,5 @@ if(NOT BOOTLOADER_BUILD) # will be replaced with MMU requirements idf_component_optional_requires(PRIVATE esp_psram) endif() + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() diff --git a/components/spi_flash/test/CMakeLists.txt b/components/spi_flash/test/CMakeLists.txt index 7ae600b5b2..c475f2d993 100644 --- a/components/spi_flash/test/CMakeLists.txt +++ b/components/spi_flash/test/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils spi_flash bootloader_support app_update driver esp_timer) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/spi_flash/test_apps/flash_encryption/main/CMakeLists.txt b/components/spi_flash/test_apps/flash_encryption/main/CMakeLists.txt index 78879de3b0..df989b7274 100644 --- a/components/spi_flash/test_apps/flash_encryption/main/CMakeLists.txt +++ b/components/spi_flash/test_apps/flash_encryption/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "test_app_main.c" idf_component_register(SRCS ${srcs} WHOLE_ARCHIVE) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/spiffs/CMakeLists.txt b/components/spiffs/CMakeLists.txt index cdae744847..a5e032dc2c 100644 --- a/components/spiffs/CMakeLists.txt +++ b/components/spiffs/CMakeLists.txt @@ -13,3 +13,5 @@ idf_component_register(SRCS "esp_spiffs.c" if(CMAKE_C_COMPILER_ID MATCHES "GNU") set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation) endif() + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/spiffs/test/CMakeLists.txt b/components/spiffs/test/CMakeLists.txt index 2545980c36..808cb75ef3 100644 --- a/components/spiffs/test/CMakeLists.txt +++ b/components/spiffs/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." PRIV_REQUIRES cmock test_utils spiffs vfs) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/tcp_transport/test/CMakeLists.txt b/components/tcp_transport/test/CMakeLists.txt index fa39f1cb9f..1b449c22f7 100644 --- a/components/tcp_transport/test/CMakeLists.txt +++ b/components/tcp_transport/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "../private_include" "." PRIV_REQUIRES cmock test_utils tcp_transport) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/touch_element/CMakeLists.txt b/components/touch_element/CMakeLists.txt index 21a54d5aad..b8b90e7efd 100644 --- a/components/touch_element/CMakeLists.txt +++ b/components/touch_element/CMakeLists.txt @@ -8,4 +8,5 @@ if(IDF_TARGET IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS) INCLUDE_DIRS include REQUIRES driver PRIV_REQUIRES esp_timer) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() diff --git a/components/touch_element/test/CMakeLists.txt b/components/touch_element/test/CMakeLists.txt index 432e19c434..9c02399984 100644 --- a/components/touch_element/test/CMakeLists.txt +++ b/components/touch_element/test/CMakeLists.txt @@ -6,4 +6,5 @@ if(IDF_TARGET IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS) "test_touch_slider.c" "test_touch_matrix.c" PRIV_REQUIRES unity touch_element) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") endif() diff --git a/components/ulp/CMakeLists.txt b/components/ulp/CMakeLists.txt index ae3f7bee33..ebbab38890 100644 --- a/components/ulp/CMakeLists.txt +++ b/components/ulp/CMakeLists.txt @@ -34,3 +34,7 @@ endif() idf_component_register(SRCS ${srcs} INCLUDE_DIRS ${includes} REQUIRES driver esp_adc) + +if(CONFIG_SOC_ULP_SUPPORTED OR CONFIG_SOC_RISCV_COPROC_SUPPORTED) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") +endif() diff --git a/components/usb/CMakeLists.txt b/components/usb/CMakeLists.txt index 35f5d24277..d458fb0130 100644 --- a/components/usb/CMakeLists.txt +++ b/components/usb/CMakeLists.txt @@ -23,3 +23,7 @@ idf_component_register(SRCS ${srcs} PRIV_INCLUDE_DIRS ${priv_include} PRIV_REQUIRES ${priv_require} ) + +if(CONFIG_USB_OTG_SUPPORTED) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") +endif() diff --git a/components/usb/test/CMakeLists.txt b/components/usb/test/CMakeLists.txt index 7857c7ee66..71754ca539 100644 --- a/components/usb/test/CMakeLists.txt +++ b/components/usb/test/CMakeLists.txt @@ -10,3 +10,4 @@ idf_component_register( PRIV_INCLUDE_DIRS "../private_include" "common" "hcd" "usb_host" PRIV_REQUIRES cmock usb test_utils ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/vfs/CMakeLists.txt b/components/vfs/CMakeLists.txt index 76d9220553..f21385edce 100644 --- a/components/vfs/CMakeLists.txt +++ b/components/vfs/CMakeLists.txt @@ -18,3 +18,5 @@ endif() # Some newlib syscalls are implemented in vfs.c, make sure these are always # seen by the linker target_link_libraries(${COMPONENT_LIB} INTERFACE "-u vfs_include_syscalls_impl") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/vfs/test/CMakeLists.txt b/components/vfs/test/CMakeLists.txt index ef84a7ff17..fe70937685 100644 --- a/components/vfs/test/CMakeLists.txt +++ b/components/vfs/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS . PRIV_REQUIRES cmock test_utils vfs fatfs spiffs) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/wear_levelling/CMakeLists.txt b/components/wear_levelling/CMakeLists.txt index e5d39463be..1a44349585 100644 --- a/components/wear_levelling/CMakeLists.txt +++ b/components/wear_levelling/CMakeLists.txt @@ -8,3 +8,5 @@ idf_component_register(SRCS "Partition.cpp" INCLUDE_DIRS include PRIV_INCLUDE_DIRS private_include REQUIRES spi_flash) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/wear_levelling/test_apps/main/CMakeLists.txt b/components/wear_levelling/test_apps/main/CMakeLists.txt index e82672a921..bb8eeaa368 100644 --- a/components/wear_levelling/test_apps/main/CMakeLists.txt +++ b/components/wear_levelling/test_apps/main/CMakeLists.txt @@ -3,3 +3,4 @@ idf_component_register(SRCS test_wl.c PRIV_REQUIRES wear_levelling unity EMBED_FILES test_partition_v1.bin ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/wpa_supplicant/CMakeLists.txt b/components/wpa_supplicant/CMakeLists.txt index 3dc0beb154..118743e08f 100644 --- a/components/wpa_supplicant/CMakeLists.txt +++ b/components/wpa_supplicant/CMakeLists.txt @@ -265,3 +265,5 @@ if(CONFIG_ESP32_WIFI_ENABLE_WPA3_OWE_STA) target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_OWE_STA) endif() set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 3) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/wpa_supplicant/test/CMakeLists.txt b/components/wpa_supplicant/test/CMakeLists.txt index 99377e598e..b5f733cf75 100644 --- a/components/wpa_supplicant/test/CMakeLists.txt +++ b/components/wpa_supplicant/test/CMakeLists.txt @@ -2,6 +2,7 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}" PRIV_INCLUDE_DIRS "../src" "../esp_supplicant/src" PRIV_REQUIRES cmock esp_common test_utils wpa_supplicant mbedtls esp_wifi esp_event) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") idf_component_get_property(esp_supplicant_dir wpa_supplicant COMPONENT_DIR) diff --git a/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt index 18d14d5b56..00068244f3 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble_ancs_demo.c" "ble_ancs.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt index 1989ce57b3..205172b718 100644 --- a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt @@ -1,2 +1,4 @@ idf_component_register(SRCS "ble_compatibility_test.c" INCLUDE_DIRS ".") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt index 8290fc6305..0820e85fc6 100644 --- a/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "esp_eddystone_api.c" "esp_eddystone_demo.c" INCLUDE_DIRS "") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt index 5fa00fb626..de64acbead 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "spp_client_demo.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt index 4695587a07..e9b577ac2d 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_client_throughput.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt index 419488adc3..ff7aa19f33 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_server_throughput.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt index 9101064d3d..256eb6722c 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_sec_gattc_demo.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt index f890f38d40..e91eef453d 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "example_ble_sec_gatts_demo.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt index 379d4659ab..df8ece30e3 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gatts_demo.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt index ac38069c88..0f3ab3dc64 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble50_sec_gattc_demo.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt index 940c38d0b3..e85f895b5f 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ble50_sec_gatts_demo.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/CMakeLists.txt index c34ea69578..783e3891b8 100644 --- a/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "bt_app_av.c" "bt_app_core.c" "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt index 9ec92bc110..9ab94fea95 100644 --- a/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "bt_app_core.c" "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt index cf2c455cb5..02ecb78e1a 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt index 5d47675980..10ac1fdd24 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt @@ -5,3 +5,4 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt index e2d9e2f26b..89fe167a1a 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "bt_app_core.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt index e2d9e2f26b..89fe167a1a 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "bt_app_core.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt index cf2c455cb5..02ecb78e1a 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt index a9c07d5c0c..ef1a699948 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt @@ -3,3 +3,4 @@ idf_component_register(SRCS "main.c" SRCS "app_spp_msg_set.c" SRCS "console_uart.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt index 89b4347dcd..df2c2ae24f 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "spp_task.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt index 89b4347dcd..df2c2ae24f 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "spp_task.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt index 40a6ff2b4e..6cf6be58c7 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt @@ -5,3 +5,4 @@ idf_component_register(SRCS "app_hf_msg_prs.c" "gpio_pcm_config.c" "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt index 40a6ff2b4e..6cf6be58c7 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt @@ -5,3 +5,4 @@ idf_component_register(SRCS "app_hf_msg_prs.c" "gpio_pcm_config.c" "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt b/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt index c34ea69578..783e3891b8 100644 --- a/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "bt_app_av.c" "bt_app_core.c" "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt index 912d96da7b..4df51dfaac 100644 --- a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt +++ b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gattc_gatts_coex.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/blufi/main/CMakeLists.txt b/examples/bluetooth/blufi/main/CMakeLists.txt index a8b056e73a..a49dfc6a09 100644 --- a/examples/bluetooth/blufi/main/CMakeLists.txt +++ b/examples/bluetooth/blufi/main/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "blufi_example_main.c" "blufi_security.c" "blufi_init.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/CMakeLists.txt index df2601dcfb..4ad85994ec 100644 --- a/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/CMakeLists.txt @@ -11,3 +11,4 @@ set(COMPONENT_ADD_INCLUDEDIRS ". include") set(COMPONENT_REQUIRES bt nvs_flash example_nvs) register_component() +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt index 8cf3cefba1..0cced2bea4 100644 --- a/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt @@ -5,3 +5,4 @@ set(COMPONENT_SRCS "board.c" set(COMPONENT_ADD_INCLUDEDIRS ". include") register_component() +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/CMakeLists.txt index b08fff2317..276ccfad9e 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/CMakeLists.txt @@ -9,3 +9,5 @@ idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "." REQUIRES console nvs_flash bt REQUIRED_IDF_TARGETS esp32) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/CMakeLists.txt index 6346b6d11e..fb330a6e65 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/CMakeLists.txt @@ -13,3 +13,4 @@ set(srcs "ble_mesh_adapter.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/CMakeLists.txt index ab05eb8864..76533fc6f1 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/CMakeLists.txt index 98d0fc613c..8b3610edb0 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/CMakeLists.txt index 98d0fc613c..8b3610edb0 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/CMakeLists.txt index 13a56c69f2..ef8a24c63c 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner/main/CMakeLists.txt index fdc75fac07..9e9dfd8e33 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(srcs "main.c") idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/CMakeLists.txt index 98d0fc613c..8b3610edb0 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/CMakeLists.txt index 98d0fc613c..8b3610edb0 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_client/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_client/main/CMakeLists.txt index 98d0fc613c..8b3610edb0 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_client/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_client/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_server/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_server/main/CMakeLists.txt index 98d0fc613c..8b3610edb0 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_server/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_server/main/CMakeLists.txt @@ -3,3 +3,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/CMakeLists.txt index 442dfcb3aa..81b7140e81 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/CMakeLists.txt @@ -4,3 +4,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/CMakeLists.txt b/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/CMakeLists.txt index 7908d0c82f..a562389edb 100644 --- a/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/CMakeLists.txt +++ b/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/CMakeLists.txt @@ -9,3 +9,5 @@ idf_component_register(SRCS "${srcs}" set_source_files_properties( "ble_mesh_fast_prov_server_model.c" PROPERTIES COMPILE_FLAGS -Wno-address-of-packed-member) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_hid_device/main/CMakeLists.txt b/examples/bluetooth/esp_hid_device/main/CMakeLists.txt index 95b2b14c70..87f9dd8c99 100644 --- a/examples/bluetooth/esp_hid_device/main/CMakeLists.txt +++ b/examples/bluetooth/esp_hid_device/main/CMakeLists.txt @@ -6,3 +6,4 @@ idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "${include_dirs}" REQUIRES esp_hid PRIV_REQUIRES nvs_flash) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/esp_hid_host/main/CMakeLists.txt b/examples/bluetooth/esp_hid_host/main/CMakeLists.txt index 48060133ec..222b9b0466 100644 --- a/examples/bluetooth/esp_hid_host/main/CMakeLists.txt +++ b/examples/bluetooth/esp_hid_host/main/CMakeLists.txt @@ -6,3 +6,4 @@ idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "${include_dirs}" REQUIRES esp_hid PRIV_REQUIRES nvs_flash) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt b/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt index 99da938f3b..37b2d2ae1c 100644 --- a/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/blemesh/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_mesh.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/nimble/bleprph/main/CMakeLists.txt b/examples/bluetooth/nimble/bleprph/main/CMakeLists.txt index e634d91537..621b69cbd3 100644 --- a/examples/bluetooth/nimble/bleprph/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/bleprph/main/CMakeLists.txt @@ -5,3 +5,4 @@ set(srcs "main.c" idf_component_register(SRCS "${srcs}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt b/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt index e8a76d0b09..b00c4016c4 100644 --- a/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt +++ b/examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "gatt_svr.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/CMakeLists.txt b/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/CMakeLists.txt index 81198d6511..bdf7f1569e 100644 --- a/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/CMakeLists.txt +++ b/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "cmd_system.c" INCLUDE_DIRS "." PRIV_REQUIRES driver REQUIRES console spi_flash) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/common_components/iperf/CMakeLists.txt b/examples/common_components/iperf/CMakeLists.txt index 8580fc82ac..673acc2e43 100644 --- a/examples/common_components/iperf/CMakeLists.txt +++ b/examples/common_components/iperf/CMakeLists.txt @@ -2,3 +2,5 @@ idf_component_register(SRCS "iperf.c" INCLUDE_DIRS "include" REQUIRES lwip PRIV_REQUIRES esp_timer) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/CMakeLists.txt b/examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/CMakeLists.txt index 15809a21ef..8d40b820ad 100644 --- a/examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/CMakeLists.txt +++ b/examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/CMakeLists.txt @@ -21,3 +21,4 @@ else() idf_component_get_property(experimental_cpp_component_lib experimental_cpp_component COMPONENT_LIB) target_link_libraries(${COMPONENT_LIB} PUBLIC ${log_lib} ${mqtt_lib} ${experimental_cpp_component_lib}) endif() +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/cxx/experimental/esp_mqtt_cxx/ssl/main/CMakeLists.txt b/examples/cxx/experimental/esp_mqtt_cxx/ssl/main/CMakeLists.txt index e06e5975be..020135ce8d 100644 --- a/examples/cxx/experimental/esp_mqtt_cxx/ssl/main/CMakeLists.txt +++ b/examples/cxx/experimental/esp_mqtt_cxx/ssl/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mqtt_ssl_example.cpp" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/cxx/experimental/esp_mqtt_cxx/tcp/main/CMakeLists.txt b/examples/cxx/experimental/esp_mqtt_cxx/tcp/main/CMakeLists.txt index eeaa9534e5..f9c2aeec83 100644 --- a/examples/cxx/experimental/esp_mqtt_cxx/tcp/main/CMakeLists.txt +++ b/examples/cxx/experimental/esp_mqtt_cxx/tcp/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mqtt_tcp_example.cpp" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/cxx/experimental/experimental_cpp_component/test/CMakeLists.txt b/examples/cxx/experimental/experimental_cpp_component/test/CMakeLists.txt index 78b0f5cd52..017495bf43 100644 --- a/examples/cxx/experimental/experimental_cpp_component/test/CMakeLists.txt +++ b/examples/cxx/experimental/experimental_cpp_component/test/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS . PRIV_REQUIRES cmock test_utils experimental_cpp_component) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/ethernet/iperf/main/CMakeLists.txt b/examples/ethernet/iperf/main/CMakeLists.txt index fc8e5dd8bb..0efe55ab10 100644 --- a/examples/ethernet/iperf/main/CMakeLists.txt +++ b/examples/ethernet/iperf/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "cmd_ethernet.c" "ethernet_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/get-started/hello_world/main/CMakeLists.txt b/examples/get-started/hello_world/main/CMakeLists.txt index 07686dc8e1..392c049cbf 100644 --- a/examples/get-started/hello_world/main/CMakeLists.txt +++ b/examples/get-started/hello_world/main/CMakeLists.txt @@ -1,2 +1,4 @@ idf_component_register(SRCS "hello_world_main.c" INCLUDE_DIRS "") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/mesh/internal_communication/main/CMakeLists.txt b/examples/mesh/internal_communication/main/CMakeLists.txt index 686ab05acf..bccc4c5e6e 100644 --- a/examples/mesh/internal_communication/main/CMakeLists.txt +++ b/examples/mesh/internal_communication/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "mesh_light.c" "mesh_main.c" INCLUDE_DIRS "." "include") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/mesh/ip_internal_network/main/CMakeLists.txt b/examples/mesh/ip_internal_network/main/CMakeLists.txt index 06403090a4..55cf4f19d6 100644 --- a/examples/mesh/ip_internal_network/main/CMakeLists.txt +++ b/examples/mesh/ip_internal_network/main/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "mesh_main.c" "mesh_netif.c" "mqtt_app.c" INCLUDE_DIRS "." "include") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/mesh/manual_networking/main/CMakeLists.txt b/examples/mesh/manual_networking/main/CMakeLists.txt index 686ab05acf..bccc4c5e6e 100644 --- a/examples/mesh/manual_networking/main/CMakeLists.txt +++ b/examples/mesh/manual_networking/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "mesh_light.c" "mesh_main.c" INCLUDE_DIRS "." "include") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/network/simple_sniffer/main/CMakeLists.txt b/examples/network/simple_sniffer/main/CMakeLists.txt index 5d4205471d..485037a752 100644 --- a/examples/network/simple_sniffer/main/CMakeLists.txt +++ b/examples/network/simple_sniffer/main/CMakeLists.txt @@ -2,3 +2,4 @@ idf_component_register(SRCS "simple_sniffer_example_main.c" "cmd_sniffer.c" "cmd_pcap.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/adc/continuous_read/main/CMakeLists.txt b/examples/peripherals/adc/continuous_read/main/CMakeLists.txt index 902872a063..c9dd1dd9cd 100644 --- a/examples/peripherals/adc/continuous_read/main/CMakeLists.txt +++ b/examples/peripherals/adc/continuous_read/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "continuous_read_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/gpio/generic_gpio/main/CMakeLists.txt b/examples/peripherals/gpio/generic_gpio/main/CMakeLists.txt index 81e99f92f9..8adcdef66d 100644 --- a/examples/peripherals/gpio/generic_gpio/main/CMakeLists.txt +++ b/examples/peripherals/gpio/generic_gpio/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "gpio_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/gpio/matrix_keyboard/components/matrix_keyboard/CMakeLists.txt b/examples/peripherals/gpio/matrix_keyboard/components/matrix_keyboard/CMakeLists.txt index 167e6b2d80..98f9bcab35 100644 --- a/examples/peripherals/gpio/matrix_keyboard/components/matrix_keyboard/CMakeLists.txt +++ b/examples/peripherals/gpio/matrix_keyboard/components/matrix_keyboard/CMakeLists.txt @@ -5,3 +5,4 @@ idf_component_register(SRCS "${component_srcs}" PRIV_INCLUDE_DIRS "" PRIV_REQUIRES "driver" REQUIRES "") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt b/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt index ce42fe41d6..ad6b382f26 100644 --- a/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt +++ b/examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "matrix_keyboard_example_main.c" INCLUDE_DIRS "") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/i2c/i2c_self_test/main/CMakeLists.txt b/examples/peripherals/i2c/i2c_self_test/main/CMakeLists.txt index 2fedda516d..a1ac988361 100644 --- a/examples/peripherals/i2c/i2c_self_test/main/CMakeLists.txt +++ b/examples/peripherals/i2c/i2c_self_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "i2c_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt b/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt index 7af0d47cfc..d61b866297 100644 --- a/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt +++ b/examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "i2ctools_example_main.c" "cmd_i2ctools.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/i2s/i2s_adc_dac/main/CMakeLists.txt b/examples/peripherals/i2s/i2s_adc_dac/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/peripherals/i2s/i2s_adc_dac/main/CMakeLists.txt +++ b/examples/peripherals/i2s/i2s_adc_dac/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt b/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt index 4e9a3d43e5..30da0c0318 100644 --- a/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt +++ b/examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt @@ -1,2 +1,4 @@ idf_component_register(SRCS "rgb_lcd_example_main.c" "lvgl_demo_ui.c" INCLUDE_DIRS ".") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt index 1d97d04dc0..2ecff3751d 100644 --- a/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt +++ b/examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mcpwm_bldc_hall_control_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt b/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt index 450a211ce5..bd120826dd 100644 --- a/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt +++ b/examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mcpwm_capture_hc_sr04.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/sdio/host/main/CMakeLists.txt b/examples/peripherals/sdio/host/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/peripherals/sdio/host/main/CMakeLists.txt +++ b/examples/peripherals/sdio/host/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/spi_master/lcd/main/CMakeLists.txt b/examples/peripherals/spi_master/lcd/main/CMakeLists.txt index 0d34bee60e..a59f4a0ae5 100644 --- a/examples/peripherals/spi_master/lcd/main/CMakeLists.txt +++ b/examples/peripherals/spi_master/lcd/main/CMakeLists.txt @@ -6,3 +6,5 @@ set(srcs "pretty_effect.c" idf_component_register(SRCS ${srcs} INCLUDE_DIRS "." EMBED_FILES image.jpg) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt b/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/spi_slave_hd/segment_mode/seg_master/main/CMakeLists.txt b/examples/peripherals/spi_slave_hd/segment_mode/seg_master/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/peripherals/spi_slave_hd/segment_mode/seg_master/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave_hd/segment_mode/seg_master/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt b/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt +++ b/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/temp_sensor/main/CMakeLists.txt b/examples/peripherals/temp_sensor/main/CMakeLists.txt index 343333a55f..84c61f9473 100644 --- a/examples/peripherals/temp_sensor/main/CMakeLists.txt +++ b/examples/peripherals/temp_sensor/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "temp_sensor_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_element/touch_button/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_element/touch_button/main/CMakeLists.txt index 64e4f4dd82..01c1423b22 100644 --- a/examples/peripherals/touch_sensor/touch_element/touch_button/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_element/touch_button/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "touch_button_example_main.c" INCLUDE_DIRS "." PRIV_REQUIRES touch_element) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_element/touch_element_waterproof/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_element/touch_element_waterproof/main/CMakeLists.txt index df1acc5837..80a1673df5 100644 --- a/examples/peripherals/touch_sensor/touch_element/touch_element_waterproof/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_element/touch_element_waterproof/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "waterproof_example_main.c" INCLUDE_DIRS "." PRIV_REQUIRES touch_element) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_element/touch_elements_combination/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_element/touch_elements_combination/main/CMakeLists.txt index a768337bd2..4cfd621f1e 100644 --- a/examples/peripherals/touch_sensor/touch_element/touch_elements_combination/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_element/touch_elements_combination/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "touch_elements_example_main.c" INCLUDE_DIRS "." PRIV_REQUIRES touch_element) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_element/touch_matrix/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_element/touch_matrix/main/CMakeLists.txt index ca3814e9f0..69b1052aeb 100644 --- a/examples/peripherals/touch_sensor/touch_element/touch_matrix/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_element/touch_matrix/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "touch_matrix_example_main.c" INCLUDE_DIRS "." PRIV_REQUIRES touch_element) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_element/touch_slider/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_element/touch_slider/main/CMakeLists.txt index 8742ecf28c..3a69d86adf 100644 --- a/examples/peripherals/touch_sensor/touch_element/touch_slider/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_element/touch_slider/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "touch_slider_example_main.c" INCLUDE_DIRS "." PRIV_REQUIRES touch_element) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt index 94fac9872e..43bd93bcf4 100644 --- a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tp_interrupt_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt index 2b9a209ec4..9454ca3650 100644 --- a/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tp_read_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_interrupt/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_interrupt/main/CMakeLists.txt index 94fac9872e..43bd93bcf4 100644 --- a/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_interrupt/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_interrupt/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tp_interrupt_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_read/main/CMakeLists.txt b/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_read/main/CMakeLists.txt index 2b9a209ec4..9454ca3650 100644 --- a/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_read/main/CMakeLists.txt +++ b/examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_read/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "tp_read_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt b/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt index e26450a577..0075b952ca 100644 --- a/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_network_example_listen_only_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt b/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt index 112b3ca1b4..06a6d3828a 100644 --- a/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_network_example_master_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt b/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt index 84241dd1d3..7e8c1cd4ec 100644 --- a/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt +++ b/examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "twai_network_example_slave_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/usb/host/cdc/cdc_acm_host/main/CMakeLists.txt b/examples/peripherals/usb/host/cdc/cdc_acm_host/main/CMakeLists.txt index 5d09b5c7fc..d2e76376b6 100644 --- a/examples/peripherals/usb/host/cdc/cdc_acm_host/main/CMakeLists.txt +++ b/examples/peripherals/usb/host/cdc/cdc_acm_host/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "usb-cdc.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/usb/host/cdc/cdc_acm_vcp/main/CMakeLists.txt b/examples/peripherals/usb/host/cdc/cdc_acm_vcp/main/CMakeLists.txt index baa6d445e4..bed3ab4e2a 100644 --- a/examples/peripherals/usb/host/cdc/cdc_acm_vcp/main/CMakeLists.txt +++ b/examples/peripherals/usb/host/cdc/cdc_acm_vcp/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "cdc_acm_vcp.cpp" "cp210x_usb.cpp" "ftdi_usb.cpp" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/peripherals/usb/host/cdc/common/cdc_acm_host/CMakeLists.txt b/examples/peripherals/usb/host/cdc/common/cdc_acm_host/CMakeLists.txt index f2ff73f8fc..17093480c9 100644 --- a/examples/peripherals/usb/host/cdc/common/cdc_acm_host/CMakeLists.txt +++ b/examples/peripherals/usb/host/cdc/common/cdc_acm_host/CMakeLists.txt @@ -13,3 +13,6 @@ idf_component_register(SRCS ${srcs} INCLUDE_DIRS ${include} REQUIRES ${require} ) +if(CONFIG_USB_OTG_SUPPORTED) + target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") +endif() diff --git a/examples/peripherals/usb/host/msc/main/CMakeLists.txt b/examples/peripherals/usb/host/msc/main/CMakeLists.txt index 25d7b8b633..94b145cd8f 100644 --- a/examples/peripherals/usb/host/msc/main/CMakeLists.txt +++ b/examples/peripherals/usb/host/msc/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "msc_example_main.c" INCLUDE_DIRS "" REQUIRES usb msc fatfs vfs) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/esp_local_ctrl/main/CMakeLists.txt b/examples/protocols/esp_local_ctrl/main/CMakeLists.txt index cb680e3bce..8296886cc0 100644 --- a/examples/protocols/esp_local_ctrl/main/CMakeLists.txt +++ b/examples/protocols/esp_local_ctrl/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "app_main.c" "esp_local_ctrl_service.c" INCLUDE_DIRS "." EMBED_TXTFILES "certs/servercert.pem" "certs/prvtkey.pem") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/http_server/captive_portal/main/CMakeLists.txt b/examples/protocols/http_server/captive_portal/main/CMakeLists.txt index 3e85f1d9b4..9694baee81 100644 --- a/examples/protocols/http_server/captive_portal/main/CMakeLists.txt +++ b/examples/protocols/http_server/captive_portal/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "dns_server.c" INCLUDE_DIRS "include" EMBED_FILES root.html) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/https_mbedtls/main/CMakeLists.txt b/examples/protocols/https_mbedtls/main/CMakeLists.txt index bdc0271b9c..4807bc71de 100644 --- a/examples/protocols/https_mbedtls/main/CMakeLists.txt +++ b/examples/protocols/https_mbedtls/main/CMakeLists.txt @@ -3,3 +3,4 @@ # (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.) idf_component_register(SRCS "https_mbedtls_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/https_request/main/CMakeLists.txt b/examples/protocols/https_request/main/CMakeLists.txt index c3c1ddb0c1..ae6944b107 100644 --- a/examples/protocols/https_request/main/CMakeLists.txt +++ b/examples/protocols/https_request/main/CMakeLists.txt @@ -4,3 +4,4 @@ idf_component_register(SRCS "https_request_example_main.c" "time_sync.c" INCLUDE_DIRS "include" EMBED_TXTFILES server_root_cert.pem local_server_cert.pem) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/icmp_echo/main/CMakeLists.txt b/examples/protocols/icmp_echo/main/CMakeLists.txt index 30b73c7688..7797d714dd 100644 --- a/examples/protocols/icmp_echo/main/CMakeLists.txt +++ b/examples/protocols/icmp_echo/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "echo_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/modbus/serial/mb_master/main/CMakeLists.txt b/examples/protocols/modbus/serial/mb_master/main/CMakeLists.txt index f9ab7f6044..5d314a3471 100644 --- a/examples/protocols/modbus/serial/mb_master/main/CMakeLists.txt +++ b/examples/protocols/modbus/serial/mb_master/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_master") idf_component_register(SRCS "master.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/modbus/serial/mb_slave/main/CMakeLists.txt b/examples/protocols/modbus/serial/mb_slave/main/CMakeLists.txt index 561fa6c6c5..da27238004 100644 --- a/examples/protocols/modbus/serial/mb_slave/main/CMakeLists.txt +++ b/examples/protocols/modbus/serial/mb_slave/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_slave") idf_component_register(SRCS "slave.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/modbus/tcp/mb_tcp_master/main/CMakeLists.txt b/examples/protocols/modbus/tcp/mb_tcp_master/main/CMakeLists.txt index 842f186326..203b5cf822 100644 --- a/examples/protocols/modbus/tcp/mb_tcp_master/main/CMakeLists.txt +++ b/examples/protocols/modbus/tcp/mb_tcp_master/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_tcp_master") idf_component_register(SRCS "tcp_master.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/modbus/tcp/mb_tcp_slave/main/CMakeLists.txt b/examples/protocols/modbus/tcp/mb_tcp_slave/main/CMakeLists.txt index 588a20f67b..e15d575dd5 100644 --- a/examples/protocols/modbus/tcp/mb_tcp_slave/main/CMakeLists.txt +++ b/examples/protocols/modbus/tcp/mb_tcp_slave/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_tcp_slave") idf_component_register(SRCS "tcp_slave.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/ssl/main/CMakeLists.txt b/examples/protocols/mqtt/ssl/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt/ssl/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt b/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt index b8ef6eadbd..7a48b53163 100644 --- a/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl_ds/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS "." REQUIRED_IDF_TARGETS esp32s2 esp32c3 esp32s3) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt b/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl_mutual_auth/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt b/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ssl_psk/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/tcp/main/CMakeLists.txt b/examples/protocols/mqtt/tcp/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt/tcp/main/CMakeLists.txt +++ b/examples/protocols/mqtt/tcp/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/ws/main/CMakeLists.txt b/examples/protocols/mqtt/ws/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt/ws/main/CMakeLists.txt +++ b/examples/protocols/mqtt/ws/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt/wss/main/CMakeLists.txt b/examples/protocols/mqtt/wss/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt/wss/main/CMakeLists.txt +++ b/examples/protocols/mqtt/wss/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/mqtt5/main/CMakeLists.txt b/examples/protocols/mqtt5/main/CMakeLists.txt index 61fac40e63..c31750a8f7 100644 --- a/examples/protocols/mqtt5/main/CMakeLists.txt +++ b/examples/protocols/mqtt5/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/slip/slip_udp/components/slip_modem/CMakeLists.txt b/examples/protocols/slip/slip_udp/components/slip_modem/CMakeLists.txt index f35a62ba33..838d5a975a 100644 --- a/examples/protocols/slip/slip_udp/components/slip_modem/CMakeLists.txt +++ b/examples/protocols/slip/slip_udp/components/slip_modem/CMakeLists.txt @@ -5,3 +5,4 @@ idf_component_register( INCLUDE_DIRS "include" REQUIRES esp_netif driver ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/protocols/slip/slip_udp/main/CMakeLists.txt b/examples/protocols/slip/slip_udp/main/CMakeLists.txt index cecffd821b..eace917e55 100644 --- a/examples/protocols/slip/slip_udp/main/CMakeLists.txt +++ b/examples/protocols/slip/slip_udp/main/CMakeLists.txt @@ -5,3 +5,4 @@ idf_component_register( INCLUDE_DIRS "." REQUIRES esp_netif slip_modem driver ) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/security/flash_encryption/main/CMakeLists.txt b/examples/security/flash_encryption/main/CMakeLists.txt index 75ea85b111..6baa30745b 100644 --- a/examples/security/flash_encryption/main/CMakeLists.txt +++ b/examples/security/flash_encryption/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "flash_encrypt_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/storage/ext_flash_fatfs/main/CMakeLists.txt b/examples/storage/ext_flash_fatfs/main/CMakeLists.txt index c8a5c30e46..1f900590a8 100644 --- a/examples/storage/ext_flash_fatfs/main/CMakeLists.txt +++ b/examples/storage/ext_flash_fatfs/main/CMakeLists.txt @@ -1 +1,2 @@ idf_component_register(SRCS "ext_flash_fatfs_example_main.c") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/storage/nvs_rw_blob/main/CMakeLists.txt b/examples/storage/nvs_rw_blob/main/CMakeLists.txt index 13a1b50cee..1a98254b54 100644 --- a/examples/storage/nvs_rw_blob/main/CMakeLists.txt +++ b/examples/storage/nvs_rw_blob/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "nvs_blob_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/storage/nvs_rw_value/main/CMakeLists.txt b/examples/storage/nvs_rw_value/main/CMakeLists.txt index fdee1d3dca..806385bf3c 100644 --- a/examples/storage/nvs_rw_value/main/CMakeLists.txt +++ b/examples/storage/nvs_rw_value/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "nvs_value_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt b/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt index 217cab6a7e..10f293e43e 100644 --- a/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt +++ b/examples/storage/nvs_rw_value_cxx/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "nvs_value_example_main.cpp" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/storage/partition_api/partition_find/main/CMakeLists.txt b/examples/storage/partition_api/partition_find/main/CMakeLists.txt index 2e249f1c91..20bbe9b919 100644 --- a/examples/storage/partition_api/partition_find/main/CMakeLists.txt +++ b/examples/storage/partition_api/partition_find/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS "." EMBED_TXTFILES ../partitions_example.csv) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/console/advanced/components/cmd_nvs/CMakeLists.txt b/examples/system/console/advanced/components/cmd_nvs/CMakeLists.txt index 073e3ce6da..830ba46f71 100644 --- a/examples/system/console/advanced/components/cmd_nvs/CMakeLists.txt +++ b/examples/system/console/advanced/components/cmd_nvs/CMakeLists.txt @@ -1,3 +1,5 @@ idf_component_register(SRCS "cmd_nvs.c" INCLUDE_DIRS . REQUIRES console nvs_flash) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/console/advanced/components/cmd_system/CMakeLists.txt b/examples/system/console/advanced/components/cmd_system/CMakeLists.txt index f54289c18c..def29cca8f 100644 --- a/examples/system/console/advanced/components/cmd_system/CMakeLists.txt +++ b/examples/system/console/advanced/components/cmd_system/CMakeLists.txt @@ -1,3 +1,5 @@ idf_component_register(SRCS "cmd_system.c" INCLUDE_DIRS . REQUIRES console spi_flash driver) + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/deep_sleep/main/CMakeLists.txt b/examples/system/deep_sleep/main/CMakeLists.txt index 5474deaa87..fdfc9800e0 100644 --- a/examples/system/deep_sleep/main/CMakeLists.txt +++ b/examples/system/deep_sleep/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "deep_sleep_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/flash_suspend/main/CMakeLists.txt b/examples/system/flash_suspend/main/CMakeLists.txt index 5d6d0f9979..025ef441f8 100644 --- a/examples/system/flash_suspend/main/CMakeLists.txt +++ b/examples/system/flash_suspend/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" INCLUDE_DIRS "") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/freertos/real_time_stats/main/CMakeLists.txt b/examples/system/freertos/real_time_stats/main/CMakeLists.txt index 0488bd10d3..8b40d4d62f 100644 --- a/examples/system/freertos/real_time_stats/main/CMakeLists.txt +++ b/examples/system/freertos/real_time_stats/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "real_time_stats_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/himem/main/CMakeLists.txt b/examples/system/himem/main/CMakeLists.txt index 56b7332142..91b5375c39 100644 --- a/examples/system/himem/main/CMakeLists.txt +++ b/examples/system/himem/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "himem_example_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/ipc/ipc_isr/main/CMakeLists.txt b/examples/system/ipc/ipc_isr/main/CMakeLists.txt index 2082ac3744..1e7d6dbe1f 100644 --- a/examples/system/ipc/ipc_isr/main/CMakeLists.txt +++ b/examples/system/ipc/ipc_isr/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "main.c" "asm_funcs.S" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/ota/advanced_https_ota/main/CMakeLists.txt b/examples/system/ota/advanced_https_ota/main/CMakeLists.txt index 0e102c7ca2..de23aa9b8f 100644 --- a/examples/system/ota/advanced_https_ota/main/CMakeLists.txt +++ b/examples/system/ota/advanced_https_ota/main/CMakeLists.txt @@ -3,3 +3,4 @@ idf_component_register(SRCS "advanced_https_ota_example.c" "ble_helper/bluedroid INCLUDE_DIRS "." "./ble_helper/include/" # Embed the server root certificate into the final binary EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/ota/native_ota_example/main/CMakeLists.txt b/examples/system/ota/native_ota_example/main/CMakeLists.txt index dea9a5a5ad..37004b19d0 100644 --- a/examples/system/ota/native_ota_example/main/CMakeLists.txt +++ b/examples/system/ota/native_ota_example/main/CMakeLists.txt @@ -3,3 +3,4 @@ idf_build_get_property(project_dir PROJECT_DIR) idf_component_register(SRCS "native_ota_example.c" INCLUDE_DIRS "." EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/pthread/main/CMakeLists.txt b/examples/system/pthread/main/CMakeLists.txt index 8e83aec55f..c2c7b69318 100644 --- a/examples/system/pthread/main/CMakeLists.txt +++ b/examples/system/pthread/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "pthread_example.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/sysview_tracing/main/CMakeLists.txt b/examples/system/sysview_tracing/main/CMakeLists.txt index 0f466b71d6..b09c036fba 100644 --- a/examples/system/sysview_tracing/main/CMakeLists.txt +++ b/examples/system/sysview_tracing/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "sysview_tracing.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt b/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt index 0383353f0a..be25fb9d0f 100644 --- a/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt +++ b/examples/system/sysview_tracing_heap_log/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "sysview_heap_log.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/ulp_fsm/ulp/main/CMakeLists.txt b/examples/system/ulp_fsm/ulp/main/CMakeLists.txt index a75dc6afb0..d3b1079167 100644 --- a/examples/system/ulp_fsm/ulp/main/CMakeLists.txt +++ b/examples/system/ulp_fsm/ulp/main/CMakeLists.txt @@ -19,3 +19,5 @@ set(ulp_exp_dep_srcs "ulp_example_main.c") # 4. Call function to build ULP binary and embed in project using the argument # values above. ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/ulp_fsm/ulp_adc/main/CMakeLists.txt b/examples/system/ulp_fsm/ulp_adc/main/CMakeLists.txt index b5768ee1a9..c2ec532358 100644 --- a/examples/system/ulp_fsm/ulp_adc/main/CMakeLists.txt +++ b/examples/system/ulp_fsm/ulp_adc/main/CMakeLists.txt @@ -19,3 +19,5 @@ set(ulp_exp_dep_srcs "ulp_adc_example_main.c") # 4. Call function to build ULP binary and embed in project using the argument # values above. ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/system/ulp_riscv/adc/main/CMakeLists.txt b/examples/system/ulp_riscv/adc/main/CMakeLists.txt index 5865c37743..f2af6ba297 100644 --- a/examples/system/ulp_riscv/adc/main/CMakeLists.txt +++ b/examples/system/ulp_riscv/adc/main/CMakeLists.txt @@ -1,7 +1,7 @@ idf_component_register(SRCS "ulp_riscv_adc_example_main.c" INCLUDE_DIRS "" REQUIRES soc ulp esp_adc) - +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") # # ULP support additions to component CMakeLists.txt. diff --git a/examples/wifi/ftm/main/CMakeLists.txt b/examples/wifi/ftm/main/CMakeLists.txt index 3fa327c699..e9647443a9 100644 --- a/examples/wifi/ftm/main/CMakeLists.txt +++ b/examples/wifi/ftm/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "ftm_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/wifi/iperf/main/CMakeLists.txt b/examples/wifi/iperf/main/CMakeLists.txt index ab497c35d2..738f0e83c3 100644 --- a/examples/wifi/iperf/main/CMakeLists.txt +++ b/examples/wifi/iperf/main/CMakeLists.txt @@ -1,3 +1,5 @@ idf_component_register(SRCS "cmd_wifi.c" "iperf_example_main.c" INCLUDE_DIRS ".") + +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/examples/wifi/roaming/main/CMakeLists.txt b/examples/wifi/roaming/main/CMakeLists.txt index c3c5d418da..f682be5239 100644 --- a/examples/wifi/roaming/main/CMakeLists.txt +++ b/examples/wifi/roaming/main/CMakeLists.txt @@ -1,3 +1,4 @@ # Embed CA, certificate & key directly into binary idf_component_register(SRCS "roaming_example.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/cmake/build.cmake b/tools/cmake/build.cmake index 4f01018fff..0a274e89eb 100644 --- a/tools/cmake/build.cmake +++ b/tools/cmake/build.cmake @@ -103,10 +103,6 @@ function(__build_set_default_build_specifications) "-Wextra" "-Wno-unused-parameter" "-Wno-sign-compare" - # ignore format for uint32_t/int32_t mostly, since xtensa have long types for them - # TODO: IDF-3735 for both xtensa and riscv32 - "-Wno-error=format=" - "-Wno-format" # ignore multiple enum conversion warnings since gcc 11 # TODO: IDF-5163 "-Wno-enum-conversion" diff --git a/tools/test_apps/build_system/custom_partition_subtypes/main/CMakeLists.txt b/tools/test_apps/build_system/custom_partition_subtypes/main/CMakeLists.txt index 8e923c48a3..f7785d060c 100644 --- a/tools/test_apps/build_system/custom_partition_subtypes/main/CMakeLists.txt +++ b/tools/test_apps/build_system/custom_partition_subtypes/main/CMakeLists.txt @@ -1 +1,2 @@ idf_component_register(SRCS test_main.c) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/test_apps/build_system/ldalign_test/main/CMakeLists.txt b/tools/test_apps/build_system/ldalign_test/main/CMakeLists.txt index 1df31fac80..e7ddb446f8 100644 --- a/tools/test_apps/build_system/ldalign_test/main/CMakeLists.txt +++ b/tools/test_apps/build_system/ldalign_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "test_main.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/test_apps/protocols/mqtt/build_test/main/CMakeLists.txt b/tools/test_apps/protocols/mqtt/build_test/main/CMakeLists.txt index fabd82e28d..2e8369cdcf 100644 --- a/tools/test_apps/protocols/mqtt/build_test/main/CMakeLists.txt +++ b/tools/test_apps/protocols/mqtt/build_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "mqtt_app.cpp" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/test_apps/protocols/mqtt/publish_connect_test/main/CMakeLists.txt b/tools/test_apps/protocols/mqtt/publish_connect_test/main/CMakeLists.txt index d03e617a9c..657a574868 100644 --- a/tools/test_apps/protocols/mqtt/publish_connect_test/main/CMakeLists.txt +++ b/tools/test_apps/protocols/mqtt/publish_connect_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "publish_test.c" "connect_test.c" "publish_connect_test.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/test_apps/security/secure_boot/main/CMakeLists.txt b/tools/test_apps/security/secure_boot/main/CMakeLists.txt index 39ee3d3c6f..609328ff5e 100644 --- a/tools/test_apps/security/secure_boot/main/CMakeLists.txt +++ b/tools/test_apps/security/secure_boot/main/CMakeLists.txt @@ -6,3 +6,4 @@ else() endif() idf_component_register(SRCS "${main_src}" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/test_apps/system/gdb_loadable_elf/main/CMakeLists.txt b/tools/test_apps/system/gdb_loadable_elf/main/CMakeLists.txt index 07686dc8e1..69def7bc1d 100644 --- a/tools/test_apps/system/gdb_loadable_elf/main/CMakeLists.txt +++ b/tools/test_apps/system/gdb_loadable_elf/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "hello_world_main.c" INCLUDE_DIRS "") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/test_apps/system/longjmp_test/main/CMakeLists.txt b/tools/test_apps/system/longjmp_test/main/CMakeLists.txt index 07686dc8e1..69def7bc1d 100644 --- a/tools/test_apps/system/longjmp_test/main/CMakeLists.txt +++ b/tools/test_apps/system/longjmp_test/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "hello_world_main.c" INCLUDE_DIRS "") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/tools/unit-test-app/components/test_utils/CMakeLists.txt b/tools/unit-test-app/components/test_utils/CMakeLists.txt index 0cd755a176..63f56255c3 100644 --- a/tools/unit-test-app/components/test_utils/CMakeLists.txt +++ b/tools/unit-test-app/components/test_utils/CMakeLists.txt @@ -27,3 +27,4 @@ idf_component_register(SRCS ${srcs} PRIV_INCLUDE_DIRS private_include REQUIRES spi_flash idf_test cmock PRIV_REQUIRES perfmon driver esp_netif) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")