Skip to content

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

Closed
@sieren

Description

@sieren

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)
              ^```


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions