diff --git a/common_arm/Makefile.common b/common_arm/Makefile.common index 1a1496490..f44f89106 100644 --- a/common_arm/Makefile.common +++ b/common_arm/Makefile.common @@ -55,7 +55,7 @@ DEFCFLAGS += -Wstrict-prototypes -Wno-error=strict-prototypes #DEFCFLAGS += -Wredundant-decls -Wno-error=redundant-decls #DEFCFLAGS += -Wcast-align -Wno-error=cast-align -# Next ones are activated only if GCCEXTRA=1 or CLANGEXTRA=1 +# Next ones are activated only if GCCEXTRA=1 EXTRACFLAGS = EXTRACFLAGS += -Wunused-parameter -Wno-error=unused-parameter EXTRACFLAGS += -Wswitch-enum -Wno-error=switch-enum @@ -84,20 +84,6 @@ GCCEXTRACFLAGS += -Wcast-align -Wno-error=cast-align ifeq ($(GCCEXTRA),1) DEFCFLAGS += $(GCCEXTRACFLAGS) $(EXTRACFLAGS) endif -# unknown to gcc or old clang: -# First we activate Wextra then we explicitly list those we know about -# Those without -Wno-error are supposed to be completely solved -CLANGEXTRACFLAGS = -Wextra -CLANGEXTRACFLAGS += -Wtautological-type-limit-compare -CLANGEXTRACFLAGS += -Wnull-pointer-arithmetic -CLANGEXTRACFLAGS += -Woverride-init -CLANGEXTRACFLAGS += -Wshift-negative-value -CLANGEXTRACFLAGS += -Wimplicit-fallthrough -# tolerate warnings when using clang -CLANGEXTRACFLAGS += -Wno-unused-command-line-argument -Wno-error=unknown-attributes -Wno-error=undef -Wno-error=keyword-macro -Wno-error=incompatible-library-redeclaration -Wno-error=macro-redefined -Wno-error=gnu-include-next -ifeq ($(CLANGEXTRA),1) - DEFCFLAGS += $(CLANGEXTRACFLAGS) $(EXTRACFLAGS) -endif CFLAGS ?= $(DEFCFLAGS) CFLAGS += $(ARMCFLAGS) -c $(INCLUDE) -std=c99 $(APP_CFLAGS)