Преглед изворни кода

build system: re-add -Wno-format as private flag for some example components

Ivan Grokhotkov пре 4 година
родитељ
комит
e596c84d49
100 измењених фајлова са 109 додато и 0 уклоњено
  1. 1 0
      examples/bluetooth/bluedroid/ble/ble_ancs/main/CMakeLists.txt
  2. 2 0
      examples/bluetooth/bluedroid/ble/ble_compatibility_test/main/CMakeLists.txt
  3. 1 0
      examples/bluetooth/bluedroid/ble/ble_eddystone/main/CMakeLists.txt
  4. 1 0
      examples/bluetooth/bluedroid/ble/ble_spp_client/main/CMakeLists.txt
  5. 1 0
      examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/CMakeLists.txt
  6. 1 0
      examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/CMakeLists.txt
  7. 1 0
      examples/bluetooth/bluedroid/ble/gatt_security_client/main/CMakeLists.txt
  8. 1 0
      examples/bluetooth/bluedroid/ble/gatt_security_server/main/CMakeLists.txt
  9. 1 0
      examples/bluetooth/bluedroid/ble/gatt_server/main/CMakeLists.txt
  10. 1 0
      examples/bluetooth/bluedroid/ble_50/ble50_security_client/main/CMakeLists.txt
  11. 1 0
      examples/bluetooth/bluedroid/ble_50/ble50_security_server/main/CMakeLists.txt
  12. 1 0
      examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/CMakeLists.txt
  13. 1 0
      examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/CMakeLists.txt
  14. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_discovery/main/CMakeLists.txt
  15. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/CMakeLists.txt
  16. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/CMakeLists.txt
  17. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/CMakeLists.txt
  18. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/CMakeLists.txt
  19. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/CMakeLists.txt
  20. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/CMakeLists.txt
  21. 1 0
      examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/CMakeLists.txt
  22. 1 0
      examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/CMakeLists.txt
  23. 1 0
      examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/CMakeLists.txt
  24. 1 0
      examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/CMakeLists.txt
  25. 1 0
      examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/CMakeLists.txt
  26. 1 0
      examples/bluetooth/blufi/main/CMakeLists.txt
  27. 1 0
      examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/CMakeLists.txt
  28. 1 0
      examples/bluetooth/esp_ble_mesh/aligenie_demo/main/CMakeLists.txt
  29. 2 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/CMakeLists.txt
  30. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/CMakeLists.txt
  31. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/CMakeLists.txt
  32. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/CMakeLists.txt
  33. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/CMakeLists.txt
  34. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/CMakeLists.txt
  35. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner/main/CMakeLists.txt
  36. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/CMakeLists.txt
  37. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/CMakeLists.txt
  38. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_client/main/CMakeLists.txt
  39. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_server/main/CMakeLists.txt
  40. 1 0
      examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/CMakeLists.txt
  41. 2 0
      examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/CMakeLists.txt
  42. 1 0
      examples/bluetooth/esp_hid_device/main/CMakeLists.txt
  43. 1 0
      examples/bluetooth/esp_hid_host/main/CMakeLists.txt
  44. 1 0
      examples/bluetooth/nimble/blemesh/main/CMakeLists.txt
  45. 1 0
      examples/bluetooth/nimble/bleprph/main/CMakeLists.txt
  46. 1 0
      examples/bluetooth/nimble/bleprph_wifi_coex/main/CMakeLists.txt
  47. 1 0
      examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/CMakeLists.txt
  48. 2 0
      examples/common_components/iperf/CMakeLists.txt
  49. 1 0
      examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/CMakeLists.txt
  50. 1 0
      examples/cxx/experimental/esp_mqtt_cxx/ssl/main/CMakeLists.txt
  51. 1 0
      examples/cxx/experimental/esp_mqtt_cxx/tcp/main/CMakeLists.txt
  52. 1 0
      examples/cxx/experimental/experimental_cpp_component/test/CMakeLists.txt
  53. 1 0
      examples/ethernet/iperf/main/CMakeLists.txt
  54. 2 0
      examples/get-started/hello_world/main/CMakeLists.txt
  55. 1 0
      examples/mesh/internal_communication/main/CMakeLists.txt
  56. 1 0
      examples/mesh/ip_internal_network/main/CMakeLists.txt
  57. 1 0
      examples/mesh/manual_networking/main/CMakeLists.txt
  58. 1 0
      examples/network/simple_sniffer/main/CMakeLists.txt
  59. 1 0
      examples/peripherals/adc/continuous_read/main/CMakeLists.txt
  60. 1 0
      examples/peripherals/gpio/generic_gpio/main/CMakeLists.txt
  61. 1 0
      examples/peripherals/gpio/matrix_keyboard/components/matrix_keyboard/CMakeLists.txt
  62. 1 0
      examples/peripherals/gpio/matrix_keyboard/main/CMakeLists.txt
  63. 1 0
      examples/peripherals/i2c/i2c_self_test/main/CMakeLists.txt
  64. 1 0
      examples/peripherals/i2c/i2c_tools/main/CMakeLists.txt
  65. 1 0
      examples/peripherals/i2s/i2s_adc_dac/main/CMakeLists.txt
  66. 2 0
      examples/peripherals/lcd/rgb_panel/main/CMakeLists.txt
  67. 1 0
      examples/peripherals/mcpwm/mcpwm_bldc_hall_control/main/CMakeLists.txt
  68. 1 0
      examples/peripherals/mcpwm/mcpwm_capture_hc_sr04/main/CMakeLists.txt
  69. 1 0
      examples/peripherals/sdio/host/main/CMakeLists.txt
  70. 2 0
      examples/peripherals/spi_master/lcd/main/CMakeLists.txt
  71. 1 0
      examples/peripherals/spi_slave_hd/append_mode/slave/main/CMakeLists.txt
  72. 1 0
      examples/peripherals/spi_slave_hd/segment_mode/seg_master/main/CMakeLists.txt
  73. 1 0
      examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/CMakeLists.txt
  74. 1 0
      examples/peripherals/temp_sensor/main/CMakeLists.txt
  75. 1 0
      examples/peripherals/touch_sensor/touch_element/touch_button/main/CMakeLists.txt
  76. 1 0
      examples/peripherals/touch_sensor/touch_element/touch_element_waterproof/main/CMakeLists.txt
  77. 1 0
      examples/peripherals/touch_sensor/touch_element/touch_elements_combination/main/CMakeLists.txt
  78. 1 0
      examples/peripherals/touch_sensor/touch_element/touch_matrix/main/CMakeLists.txt
  79. 1 0
      examples/peripherals/touch_sensor/touch_element/touch_slider/main/CMakeLists.txt
  80. 1 0
      examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_interrupt/main/CMakeLists.txt
  81. 1 0
      examples/peripherals/touch_sensor/touch_sensor_v1/touch_pad_read/main/CMakeLists.txt
  82. 1 0
      examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_interrupt/main/CMakeLists.txt
  83. 1 0
      examples/peripherals/touch_sensor/touch_sensor_v2/touch_pad_read/main/CMakeLists.txt
  84. 1 0
      examples/peripherals/twai/twai_network/twai_network_listen_only/main/CMakeLists.txt
  85. 1 0
      examples/peripherals/twai/twai_network/twai_network_master/main/CMakeLists.txt
  86. 1 0
      examples/peripherals/twai/twai_network/twai_network_slave/main/CMakeLists.txt
  87. 1 0
      examples/peripherals/usb/host/cdc/cdc_acm_host/main/CMakeLists.txt
  88. 1 0
      examples/peripherals/usb/host/cdc/cdc_acm_vcp/main/CMakeLists.txt
  89. 3 0
      examples/peripherals/usb/host/cdc/common/cdc_acm_host/CMakeLists.txt
  90. 1 0
      examples/peripherals/usb/host/msc/main/CMakeLists.txt
  91. 1 0
      examples/protocols/esp_local_ctrl/main/CMakeLists.txt
  92. 1 0
      examples/protocols/http_server/captive_portal/main/CMakeLists.txt
  93. 1 0
      examples/protocols/https_mbedtls/main/CMakeLists.txt
  94. 1 0
      examples/protocols/https_request/main/CMakeLists.txt
  95. 1 0
      examples/protocols/icmp_echo/main/CMakeLists.txt
  96. 1 0
      examples/protocols/modbus/serial/mb_master/main/CMakeLists.txt
  97. 1 0
      examples/protocols/modbus/serial/mb_slave/main/CMakeLists.txt
  98. 1 0
      examples/protocols/modbus/tcp/mb_tcp_master/main/CMakeLists.txt
  99. 1 0
      examples/protocols/modbus/tcp/mb_tcp_slave/main/CMakeLists.txt
  100. 1 0
      examples/protocols/mqtt/ssl/main/CMakeLists.txt

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 2 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 3 - 0
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()

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

+ 1 - 0
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")

Неке датотеке нису приказане због велике количине промена