From 74db526cf059d1bc30be38c28c36cf5d1156ae53 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 17 Jul 2021 23:25:07 +1000 Subject: [PATCH] extmod/btstack/btstack.mk: Use -Wno-implicit-fallthrough, not =0. In 2ae3c890bd923b4c39bba3d2e2f2d75eca5dcc06, -Wimplicit-fallthrough=0 was added to get the build to pass. This option is equivalent to -Wno-implicit-fallthrough, and the latter is compatible with clang (while the former is not). Fixes issue #7546. Signed-off-by: Damien George --- extmod/btstack/btstack.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extmod/btstack/btstack.mk b/extmod/btstack/btstack.mk index 9e1857263b..7ecc230003 100644 --- a/extmod/btstack/btstack.mk +++ b/extmod/btstack/btstack.mk @@ -67,7 +67,7 @@ endif LIB_SRC_C += $(SRC_BTSTACK) # Suppress some warnings. -BTSTACK_WARNING_CFLAGS = -Wno-old-style-definition -Wno-unused-variable -Wno-unused-parameter -Wimplicit-fallthrough=0 +BTSTACK_WARNING_CFLAGS = -Wno-old-style-definition -Wno-unused-variable -Wno-unused-parameter -Wno-implicit-fallthrough ifneq ($(CC),clang) BTSTACK_WARNING_CFLAGS += -Wno-format endif