nimble/ll: Suppress compiler warning

ble_error is not used in some configurations so just suppress compiler
warning (instead of #ifdef so we don't need to worry about it anymore).
This commit is contained in:
Andrzej Kaczmarek
2023-02-25 00:01:02 +01:00
parent 154754b577
commit d7eb050cfe
+3
View File
@@ -1954,6 +1954,9 @@ ble_ll_ctrl_rx_reject_ind(struct ble_ll_conn_sm *connsm, uint8_t *dptr,
ble_error = dptr[1];
}
/* Suppress unused-but-set if not used by following code (due to syscfg) */
(void)ble_error;
/* XXX: should I check to make sure the rejected opcode is sane
if we receive ind ext? */
switch (connsm->cur_ctrl_proc) {