-
Notifications
You must be signed in to change notification settings - Fork 879
Open
Labels
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.4.1
Espressif SoC revision.
ESP32-S3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Waveshare ESP32S3 2.41 Amoled
Steps to reproduce.
- Add component
espressif/ble_conn_mgr
- Add code to initialize BLE Stack
- Compile
Compiler generates error:
D:/Projectos/Diversos/LVGL/LiLyGo_T4S3/Test_Add_GDL90/managed_components/espressif__ble_conn_mgr/src/esp_nimble.c: In function 'esp_ble_conn_init':
D:/Projectos/Diversos/LVGL/LiLyGo_T4S3/Test_Add_GDL90/managed_components/espressif__ble_conn_mgr/src/esp_nimble.c:1943:9: error: 'uuid_data.value' may be used uninitialized [-Werror=maybe-uninitialized]
1943 | memcpy(&conn_session->adv_data_buf[offset], uuid_data.value, uuid_data.length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Projectos/Diversos/LVGL/LiLyGo_T4S3/Test_Add_GDL90/managed_components/espressif__ble_conn_mgr/src/esp_nimble.c:1896:23: note: 'uuid_data.value' was declared here
1896 | esp_nimble_maps_t uuid_data;
| ^~~~~~~~~
Build Logs.
More Information.
Default compiler options generate error, since this is an esp component that is "re-downloaded" when performing a "clean" or cloning the code in another PC, it is quite annoying.