From 9337b782d1377bb48327d85f430e80f501396e57 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Wed, 26 Aug 2020 12:59:54 -0700 Subject: [PATCH] bluetooth: Fix a fallthrough warning It fixes: ../../../../include/toolchain/gcc.h:169:30: warning: statement will never be executed [-Wswitch-unreachable] 169 | #define __fallthrough __attribute__((fallthrough)) Signed-off-by: Flavio Ceolin --- subsys/bluetooth/controller/ll_sw/ull.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull.c b/subsys/bluetooth/controller/ll_sw/ull.c index fb27eaa7bab..e0d309896ed 100644 --- a/subsys/bluetooth/controller/ll_sw/ull.c +++ b/subsys/bluetooth/controller/ll_sw/ull.c @@ -752,9 +752,8 @@ void ll_rx_dequeue(void) #if defined(CONFIG_BT_CTLR_USER_EXT) case NODE_RX_TYPE_USER_START ... NODE_RX_TYPE_USER_END: -#endif /* CONFIG_BT_CTLR_USER_EXT */ - __fallthrough; +#endif /* CONFIG_BT_CTLR_USER_EXT */ /* Ensure that at least one 'case' statement is present for this * code block.