From e055b28d1a06ba60b355a1e87da79da9ad0d5590 Mon Sep 17 00:00:00 2001 From: Matt Sieren Date: Wed, 5 Jun 2019 13:42:08 +0200 Subject: [PATCH] Ignore Werror-maybe-uninitialized from Azure IoT Library (#2824) 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 227a5568..32979ad4 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 +)