nimble/host: fix gcc 13 warnings

This commit is contained in:
Alexey Lapshin
2023-07-19 17:43:43 +02:00
committed by Szymon Janc
parent cc556e97f4
commit b521e22267
+3 -1
View File
@@ -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) {