From: Johannes Berg Date: Thu, 13 Feb 2020 18:13:33 +0000 (+0100) Subject: build: add -Wdeclaration-after-statement X-Git-Tag: v5.8~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d8fcdc8e3acefc0ce169c88c5dd4994e3675696;p=thirdparty%2Fiw.git build: add -Wdeclaration-after-statement Change-Id: Id4f25cf70c39543ae0ff250b3ab3bf7cc17f0811 Signed-off-by: Johannes Berg --- diff --git a/Makefile b/Makefile index 90f2251..8bd5457 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,10 @@ cc-option = $(shell set -e ; $(CC) $(1) -c -x c /dev/null -o /dev/null >/dev/nul CFLAGS_EVAL := $(call cc-option,-Wstringop-overflow=4) CFLAGS ?= -O2 -g -CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common \ - -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter \ - $(CFLAGS_EVAL) +CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common +CFLAGS += -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter +CFLAGS += -Wdeclaration-after-statement +CFLAGS += $(CFLAGS_EVAL) _OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c))) VERSION_OBJS := $(filter-out version.o, $(_OBJS))