Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzureIoT submodule fails to compile due to Werror-maybe-uninitialized #2822

Closed
sieren opened this issue May 25, 2019 · 1 comment
Closed

Comments

@sieren
Copy link
Contributor

sieren commented May 25, 2019

Hardware:

Board: ESP32 Dev Module / Wroom Kit etc.
Core Installation version: various (xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0)
IDE name: IDF component, CMake Build system
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Mac OSX & Linux

Description:

Compiling as an IDF component (Cmake, C++14 enabled) fails due to -Werror=maybe-uninitialized.
I submitted a fix to the submodule a while ago: VSChina/ESP32_AzureIoT_Arduino#15 but it seems like it is no longer maintained by @lirenhe who added it originally to this repo.

/home/travis/build/sieren/HomeControl/components/arduino-esp32/libraries/AzureIoT/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c:1058:32: error: 'request_id' may be used uninitialized in this function [-Werror=maybe-uninitialized]
 if (request_id == msg_entry->packet_id)
              ^```


@sieren
Copy link
Contributor Author

sieren commented Jun 5, 2019

Merged and therefore closed :)

@sieren sieren closed this as completed Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant