Lapshin opened a new pull request, #1554:
URL: https://github.com/apache/mynewt-nimble/pull/1554
This change fixes warnings that appeared when compiling with GCC 13.1.0:
```
/home/alex/git/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_att_svr.c:1838:16:
error: 'entry' may be used uninitialized [-Werror=maybe-uninitialized]
1838 | if (entry == NULL) {
| ^
/home/alex/git/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_att_svr.c:1713:31:
note: 'entry' was declared here
1713 | struct ble_att_svr_entry *entry;
| ^~~~~
/home/alex/git/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_att_svr.c:1846:18:
error: 'start_group_handle' may be used uninitialized
[-Werror=maybe-uninitialized]
1846 | rc = ble_att_svr_read_group_type_entry_write(txom, mtu,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1847 |
start_group_handle,
|
~~~~~~~~~~~~~~~~~~~
1848 |
end_group_handle,
|
~~~~~~~~~~~~~~~~~
1849 |
&service_uuid.u);
|
~~~~~~~~~~~~~~~~
/home/alex/git/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_att_svr.c:1715:14:
note: 'start_group_handle' was declared here
1715 | uint16_t start_group_handle;
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]