summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-09-07 12:53:51 +0100
committerVincent Sanders <vince@kyllikki.org>2018-09-07 12:53:51 +0100
commite4537cb37ed5b075c62723c9a49348c76eeb3d5c (patch)
tree8b195d9b112bb4613c3c52e3f83b25e6eb6152f4 /Makefile
parentbd8991c2f6546d42008ade8dd4db133a120c44db (diff)
downloadnetsurf-e4537cb37ed5b075c62723c9a49348c76eeb3d5c.tar.gz
netsurf-e4537cb37ed5b075c62723c9a49348c76eeb3d5c.tar.bz2
allow comments to supress implicit fallthrough warnings
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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