After the fallthrough comments have been replaced (see commit 741ad17a37807a5396e73c10cf3e5fb425bc87bb) with a macro expanding to the corresponding attribute, those hints became statements, and if one happens to occur before any switch case, a warning reporting it as an unreachable statement is generated. Prevent the above from happening for function ll_rx_dequeue() in ull.c by enabling an option that will make some switch case to appear before this problematic statement. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
20 lines
433 B
Plaintext
20 lines
433 B
Plaintext
CONFIG_TEST=y
|
|
CONFIG_ZTEST=y
|
|
|
|
CONFIG_BT=y
|
|
CONFIG_BT_CTLR=y
|
|
|
|
CONFIG_SETTINGS=y
|
|
CONFIG_SETTINGS_RUNTIME=y
|
|
|
|
CONFIG_BT_SETTINGS=y
|
|
CONFIG_BT_CTLR_SETTINGS=y
|
|
|
|
CONFIG_BT_CTLR_VERSION_SETTINGS=y
|
|
CONFIG_BT_CTLR_COMPANY_ID=0x5F1
|
|
CONFIG_BT_CTLR_SUBVERSION_NUMBER=0xFFFF
|
|
|
|
# Needed only to prevent the switch-unreachable warning from being generated
|
|
# for the `__fallthrough;` statement in function ll_rx_dequeue() in ull.c.
|
|
CONFIG_BT_OBSERVER=y
|