diff --git a/components/app_trace/test/CMakeLists.txt b/components/app_trace/test/CMakeLists.txt index dc24ac276d2..0b2be0a790f 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 5f8813fa5c7..7afb247dc90 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 0bb864fa11a..42b8f85f491 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 ffd85371970..16963ea6bbd 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 bb265069097..47d99d3cb64 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 b703c5d776d..180675d21da 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 b7789795f8b..3c699c90e3c 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 01903c4f1cb..4378949ec00 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 4e65c15274a..729db55b133 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 dd163dc9d91..d428eb0b321 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 22bdc0d96d1..c7f16431ccf 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 60f64e8760a..fe200a444a9 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 f8bd38290aa..7acd36f508d 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 69804189bb7..1a38f86ffa3 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 fdfe6ecaa17..4bac72e8338 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 2433aab244c..8181bbe86d6 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 452d0b2c0e3..049495b636e 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 35d5a687379..48939d92aca 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 85bbc4bb8ea..e599f6328ae 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 ba65b322fd4..fda9761c140 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 9095c9449c3..5b8c7c57203 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 224cb8b48fe..c90a0534ed7 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 ea0e846190a..3c5afe17b88 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 00f325cb18d..33b4850ad28 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 c279ebfd426..c3840a7a370 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 5209d0ce3c3..36841a99572 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 75bf32cdcc8..fa7a4e5216f 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 cc1f844cff7..3a2dcef3e61 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 1003916af6b..a89a0394e60 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 5c6a8ec0ecb..6ec66da6455 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 8f258b83325..616c9a94feb 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 373707b1327..cee9eb76200 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 e7c78d9a4e5..71e063471c9 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 55407b0e2f1..03d70c34c08 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 a77acae0d93..4382f91ec19 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 ade68f9236b..f694abfeabb 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 d71ac890df3..ef9024913a3 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 3f2295f367c..663a41648a3 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 270dc340bc8..d5a16fbe4e6 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 04524d21760..10550e7fd86 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 69dc92a8b8f..001c9ac36e3 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 34851aeb16f..27ca808e7a0 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 7fa3034028e..2b91168afb0 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 8014c0498c6..b5fc2058f7b 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 00ab63e9131..0edd942c0f9 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 e9cb0fed081..5375d478eee 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 f2fff074460..620396fcfd9 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 04edbac786d..f9dbdc04cff 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 5eb9546562e..6aa26250980 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 96b558787b3..1323d51e3f1 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 f84cc64db26..19ee79286ab 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 32c2b8226dc..08873b6a8e4 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 9ff1d792577..68489a2b648 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 7ca37bb0b76..518f57c83aa 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 b2703d252ff..6e81913af4a 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 595161f8e60..0c212433256 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 a06f271e1a9..144d832d987 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 66e32e9cee7..316eb0d02ac 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 6da69a0cbc3..3ccce3753e4 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/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt index 6afc551a802..edcf16878f6 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 568494320b3..d1d0882c5e9 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 5652212109e..d51cbed59a9 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 fda522033b2..15aea3d745f 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 9ab0dfeff77..616d362045a 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 13ea8fe3409..cb3cf2f3460 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 304fa0d8117..306f3655479 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 725e25e3dab..bcfbbc2b592 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 ed052cc07f6..9de17b084a8 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 21af896bb7a..670f1c912be 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 5a9c72e8a43..c4a984da44f 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 d98541d8f12..4c35f55eb57 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 1542683b45c..1e618a976e5 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 da1d4235d19..1db395070e2 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 186c977c2ad..17bc3e89541 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/sdmmc/CMakeLists.txt b/components/sdmmc/CMakeLists.txt index f6e8fe2b1e4..b6b1ad4f188 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 0648951eec3..edcf529ce1e 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 480149f9588..260b353b481 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 7ae600b5b2e..c475f2d993a 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 78879de3b0b..df989b72747 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 cdae7448470..a5e032dc2c8 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 2545980c36c..808cb75ef35 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 fa39f1cb9f0..1b449c22f7d 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 21a54d5aad8..b8b90e7efd3 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 432e19c434c..9c023999843 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 ae3f7bee331..ebbab38890a 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 35f5d242776..d458fb01300 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 7857c7ee666..71754ca5395 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 76d9220553e..f21385edcea 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 ef84a7ff179..fe709376857 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 e5d39463be0..1a44349585a 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 e82672a9212..bb8eeaa368f 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 3dc0beb154c..118743e08f3 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 99377e598e8..b5f733cf750 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)