From 46c12ba60be4d0adf2cf94e697e105ed2b61bfb5 Mon Sep 17 00:00:00 2001 From: sieren Date: Sat, 25 May 2019 20:32:15 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 227a5568638..32979ad4acf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,3 +209,8 @@ set(COMPONENT_REQUIRES spi_flash mbedtls mdns ethernet) set(COMPONENT_PRIV_REQUIRES fatfs nvs_flash app_update spiffs bootloader_support openssl bt) register_component() + +set_source_files_properties(libraries/AzureIoT/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c + PROPERTIES COMPILE_FLAGS + -Wno-maybe-uninitialized +)