aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-11-22 18:44:08 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-11-22 18:44:08 +0100
commit869e86d8e6a9f2d3665f6467d25bacad624b8d1e (patch)
tree909327fd4c29d504badc1f9728e39e2c030ba84f /Config.mk
parent49e566a9aaec934a8a7a530826ded0c033044799 (diff)
downloadxen-869e86d8e6a9f2d3665f6467d25bacad624b8d1e.tar.gz
xen-869e86d8e6a9f2d3665f6467d25bacad624b8d1e.tar.bz2
xen-869e86d8e6a9f2d3665f6467d25bacad624b8d1e.zip
Add -Wdeclaration-after-statement to Xen and tools build.
Fix the compile errors that result from this. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk3
1 files changed, 3 insertions, 0 deletions
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))