From 43fd972bb5d9f1359325febf6b5f74610768ba7b Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Tue, 26 May 2020 23:27:53 -0700 Subject: [PATCH] common/Make.rules: add -Wimplicit-fallthrough compiler warning Add -Wimplicit-fallthrough to the default set of compiler warnings. Signed-off-by: Steve Beattie --- common/Make.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Make.rules b/common/Make.rules index 6dcc1c2c2..9e9d213ba 100644 --- a/common/Make.rules +++ b/common/Make.rules @@ -58,7 +58,7 @@ endif pyalldo=set -e; $(foreach py, $(PYTHON_VERSIONS), $(py) $(1);) # Common set of compiler warnings -_EXTRA_WARNINGS = -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter +_EXTRA_WARNINGS = -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough EXTRA_WARNINGS := $(shell for warning in ${_EXTRA_WARNINGS} ; do \ if ${CC} $${warning} -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then \ echo "$${warning}"; \