From 869e86d8e6a9f2d3665f6467d25bacad624b8d1e Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 22 Nov 2005 18:44:08 +0100 Subject: Add -Wdeclaration-after-statement to Xen and tools build. Fix the compile errors that result from this. Signed-off-by: Keir Fraser --- Config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Config.mk') diff --git a/Config.mk b/Config.mk index 3b24b07abe..b537fa5d4b 100644 --- a/Config.mk +++ b/Config.mk @@ -8,6 +8,7 @@ XEN_TARGET_X86_PAE ?= n # Tools to run on system hosting the build HOSTCC = gcc HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer +HOSTCFLAGS += -Wdeclaration-after-statement AS = $(CROSS_COMPILE)as LD = $(CROSS_COMPILE)ld @@ -38,6 +39,8 @@ EXTRA_INCLUDES += $(EXTRA_PREFIX)/include EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR) endif +CFLAGS += -Wdeclaration-after-statement + LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i)) -- cgit v1.2.3