Skip to content

Commit 2b41c7a

Browse files
committed
Ignore Werror-maybe-uninitialized from Azure IoT Library
Ignore the error about a potentially uninitialized variable in the Azure library that will occur when compiling as a component in ESP-IDF.
1 parent fd5a2f0 commit 2b41c7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ set(AZURE_SRCS
138138
libraries/AzureIoT/src/Esp32MQTTClient.cpp
139139
)
140140

141+
set_source_files_properties(libraries/AzureIoT/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c
142+
PROPERTIES COMPILE_FLAGS
143+
-Wno-maybe-uninitialized
144+
)
145+
141146
set(BLE_SRCS
142147
libraries/BLE/src/BLE2902.cpp
143148
libraries/BLE/src/BLE2904.cpp

0 commit comments

Comments
 (0)