This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new b521e2226 nimble/host: fix gcc 13 warnings
b521e2226 is described below

commit b521e22267a6bec76c509a636043163cdc0756c5
Author: Alexey Lapshin <[email protected]>
AuthorDate: Mon Jul 17 18:51:49 2023 +0400

    nimble/host: fix gcc 13 warnings
---
 nimble/host/src/ble_att_svr.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nimble/host/src/ble_att_svr.c b/nimble/host/src/ble_att_svr.c
index 26ac14ceb..8612d3696 100644
--- a/nimble/host/src/ble_att_svr.c
+++ b/nimble/host/src/ble_att_svr.c
@@ -1725,6 +1725,9 @@ ble_att_svr_build_read_group_type_rsp(uint16_t 
conn_handle,
 
     /* Silence warnings. */
     end_group_handle = 0;
+    start_group_handle = 0;
+
+    entry = NULL;
 
     *att_err = 0;
     *err_handle = start_handle;
@@ -1745,7 +1748,6 @@ ble_att_svr_build_read_group_type_rsp(uint16_t 
conn_handle,
         goto done;
     }
 
-    start_group_handle = 0;
     rsp->bagp_length = 0;
     STAILQ_FOREACH(entry, &ble_att_svr_list, ha_next) {
         if (entry->ha_handle_id < start_handle) {

Reply via email to