From e4537cb37ed5b075c62723c9a49348c76eeb3d5c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 7 Sep 2018 12:53:51 +0100 Subject: allow comments to supress implicit fallthrough warnings --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ae1c6a2d8..04f3263d0 100644 --- a/Makefile +++ b/Makefile @@ -491,6 +491,11 @@ ifeq ($(call cc_ver_ge,4,6),1) COMMON_WARNFLAGS += -Wno-unused-but-set-variable endif +# Implicit fallthrough warnings suppressed by comment +ifeq ($(call cc_ver_ge,7,1),1) + COMMON_WARNFLAGS += -Wimplicit-fallthrough=3 +endif + # deal with chaging warning flags for different platforms ifeq ($(HOST),OpenBSD) # OpenBSD headers are not compatible with redundant declaration warning -- cgit v1.2.3