You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2023/02/27 13:10:32 UTC
[mynewt-nimble] 04/04: nimble/ll: Suppress compiler warning
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit d7eb050cfe32c25b76441a15886b3e02a2d2c779
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Sat Feb 25 00:01:02 2023 +0100
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).
---
nimble/controller/src/ble_ll_ctrl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nimble/controller/src/ble_ll_ctrl.c b/nimble/controller/src/ble_ll_ctrl.c
index 7d828aeb..b7c9c01e 100644
--- a/nimble/controller/src/ble_ll_ctrl.c
+++ b/nimble/controller/src/ble_ll_ctrl.c
@@ -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) {