summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-10-29 15:47:20 +1100
committerDamien George <damien@micropython.org>2020-11-05 10:13:12 +1100
commit2ae3c890bd923b4c39bba3d2e2f2d75eca5dcc06 (patch)
treea7422c1292dbca006c342e83289c28a8e44f3767
parented7ddd4dd436fb84e602fee4dbdc4882eca642ab (diff)
extmod/btstack/btstack.mk: Add -Wimplicit-fallthrough=0.
This is needed since -Wextra was added to the build in bef412789ea93c521bd9c2dddc22b9b3484da574 Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-rw-r--r--extmod/btstack/btstack.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/btstack/btstack.mk b/extmod/btstack/btstack.mk
index 7e5d2f646..e3309b61d 100644
--- a/extmod/btstack/btstack.mk
+++ b/extmod/btstack/btstack.mk
@@ -66,11 +66,12 @@ endif
LIB_SRC_C += $(SRC_BTSTACK)
# Suppress some warnings.
-BTSTACK_WARNING_CFLAGS = -Wno-old-style-definition -Wno-unused-variable -Wno-unused-parameter
+BTSTACK_WARNING_CFLAGS = -Wno-old-style-definition -Wno-unused-variable -Wno-unused-parameter -Wimplicit-fallthrough=0
ifneq ($(CC),clang)
BTSTACK_WARNING_CFLAGS += -Wno-format
endif
$(BUILD)/lib/btstack/src/%.o: CFLAGS += $(BTSTACK_WARNING_CFLAGS)
+$(BUILD)/lib/btstack/platform/%.o: CFLAGS += $(BTSTACK_WARNING_CFLAGS)
endif
endif