diff --git a/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt b/examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt index 18d14d5b56b..00068244f3a 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 1989ce57b39..205172b718a 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 8290fc6305d..0820e85fc61 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 5fa00fb626e..de64acbead9 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 4695587a07f..e9b577ac2de 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 419488adc31..ff7aa19f337 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 9101064d3da..256eb6722cb 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 f890f38d40f..e91eef453de 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 379d4659abe..df8ece30e3c 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 ac38069c881..0f3ab3dc648 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 940c38d0b30..e85f895b5fb 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 c34ea69578b..783e3891b81 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 9ec92bc1107..9ab94fea95e 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 cf2c455cb50..02ecb78e1a8 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 5d47675980a..10ac1fdd244 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 e2d9e2f26ba..89fe167a1a8 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 e2d9e2f26ba..89fe167a1a8 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 cf2c455cb50..02ecb78e1a8 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 a9c07d5c0c2..ef1a6999480 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 89b4347dcd9..df2c2ae24f4 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 89b4347dcd9..df2c2ae24f4 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 40a6ff2b4e5..6cf6be58c74 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 40a6ff2b4e5..6cf6be58c74 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 c34ea69578b..783e3891b81 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 912d96da7bc..4df51dfaac2 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 a8b056e73a7..a49dfc6a092 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 df2601dcfbf..4ad85994ece 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 8cf3cefba1d..0cced2bea4c 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 b08fff2317d..276ccfad9ed 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 6346b6d11e7..fb330a6e659 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 ab05eb88647..76533fc6f1f 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 98d0fc613ca..8b3610edb0f 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 98d0fc613ca..8b3610edb0f 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 13a56c69f2d..ef8a24c63cd 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 fdc75fac07d..9e9dfd8e33f 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 98d0fc613ca..8b3610edb0f 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 98d0fc613ca..8b3610edb0f 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 98d0fc613ca..8b3610edb0f 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 98d0fc613ca..8b3610edb0f 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 442dfcb3aa8..81b7140e812 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 7908d0c82f6..a562389edb8 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 95b2b14c707..87f9dd8c990 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 48060133ece..222b9b0466e 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 99da938f3bb..37b2d2ae1c9 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 e634d915370..621b69cbd30 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 e8a76d0b091..b00c4016c4f 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 81198d65110..bdf7f1569e5 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 8580fc82ac7..673acc2e433 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 15809a21ef5..8d40b820ad9 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 e06e5975be1..020135ce8dc 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 eeaa9534e54..f9c2aeec832 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 78b0f5cd520..017495bf434 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 fc8e5dd8bb7..0efe55ab103 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 07686dc8e11..392c049cbff 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 686ab05acf9..bccc4c5e6e7 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 06403090a47..55cf4f19d60 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 686ab05acf9..bccc4c5e6e7 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 5d4205471d3..485037a752b 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 902872a0637..c9dd1dd9cd8 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 81e99f92f9f..8adcdef66d4 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 167e6b2d80e..98f9bcab35a 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 ce42fe41d64..ad6b382f269 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 2fedda516da..a1ac988361d 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 7af0d47cfcd..d61b866297f 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 61fac40e63e..c31750a8f7d 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 4e9a3d43e55..30da0c03188 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 1d97d04dc07..2ecff3751d5 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 450a211ce57..bd120826ddf 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 61fac40e63e..c31750a8f7d 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 0d34bee60ea..a59f4a0ae5f 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 343333a55fd..84c61f9473f 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 64e4f4dd82a..01c1423b223 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 df1acc5837a..80a1673df57 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 a768337bd26..4cfd621f1e5 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 ca3814e9f0d..69b1052aeb9 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 8742ecf28ce..3a69d86adf2 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 94fac9872e9..43bd93bcf49 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 2b9a209ec42..9454ca36501 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 94fac9872e9..43bd93bcf49 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 2b9a209ec42..9454ca36501 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 e26450a5777..0075b952ca5 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 112b3ca1b44..06a6d3828ab 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 84241dd1d34..7e8c1cd4ec2 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 5d09b5c7fc8..d2e76376b61 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 baa6d445e48..bed3ab4e2ae 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 f2ff73f8fce..17093480c9a 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 25d7b8b633e..94b145cd8fa 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 cb680e3bcec..8296886cc0e 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 3e85f1d9b48..9694baee81b 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 bdc0271b9c9..4807bc71ded 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 c3c1ddb0c15..ae6944b107f 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 30b73c76884..7797d714dd4 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 f9ab7f60446..5d314a34717 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 561fa6c6c5e..da27238004b 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 842f1863262..203b5cf8222 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 588a20f67bb..e15d575dd56 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 61fac40e63e..c31750a8f7d 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 b8ef6eadbdd..7a48b53163a 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 61fac40e63e..c31750a8f7d 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 f35a62ba337..838d5a975a3 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 cecffd821b7..eace917e559 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 75ea85b111f..6baa30745bc 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 c8a5c30e46b..1f900590a82 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 13a1b50ceee..1a98254b54a 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 fdee1d3dca9..806385bf3cd 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 217cab6a7eb..10f293e43ee 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 2e249f1c91d..20bbe9b919e 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 073e3ce6da4..830ba46f712 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 f54289c18cc..def29cca8f9 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 5474deaa87b..fdfc9800e09 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 5d6d0f9979b..025ef441f8c 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 0488bd10d39..8b40d4d62f6 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 56b7332142e..91b5375c39a 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 2082ac37441..1e7d6dbe1f9 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 0e102c7ca22..de23aa9b8f5 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 dea9a5a5ad5..37004b19d0a 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 8e83aec55f3..c2c7b693187 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 0f466b71d68..b09c036fba6 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 0383353f0a1..be25fb9d0fc 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 a75dc6afb0c..d3b10791671 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 b5768ee1a93..c2ec5323585 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 5865c377436..f2af6ba2975 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 3fa327c699d..e9647443a9b 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 ab497c35d2e..738f0e83c31 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 c3c5d418dae..f682be52397 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")