]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
build: add -Wdeclaration-after-statement
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Feb 2020 18:13:33 +0000 (19:13 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Feb 2020 18:18:23 +0000 (19:18 +0100)
Change-Id: Id4f25cf70c39543ae0ff250b3ab3bf7cc17f0811
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Makefile

index 90f22518518aacbba3812ca455aa638ecb732552..8bd5457279df4332b8a392492bb1cb0f611e974c 100644 (file)
--- 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))