summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5cb55561f..18665ed3d 100644
--- a/Makefile
+++ b/Makefile
@@ -90,13 +90,13 @@ ifeq ($(call cc_ver_ge,4,6),1)
endif
ifeq ($(TOOLCHAIN),gcc)
- # Implicit fallthrough warnings suppressed by comment
+ # Implicit fallthrough warnings
ifeq ($(call cc_ver_ge,7,1),1)
- COMMON_WARNFLAGS += -Wimplicit-fallthrough=3
+ COMMON_WARNFLAGS += -Wimplicit-fallthrough=5
endif
else
- # clang uses [[clang::fallthrough]] to annotate fallthrough instead of comments
- COMMON_WARNFLAGS += -Wno-implicit-fallthrough
+ # non gcc has different warning syntax
+ COMMON_WARNFLAGS += -Wimplicit-fallthrough
endif
# deal with chaging warning flags for different platforms