aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-09 21:17:45 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-09 21:17:45 +0100
commit326450f67e011c6cb6ced17c8dcb5e7a8442057d (patch)
treecee4a75a40c795a063b54ee703fcf9cf0ade0785 /Config.mk
parente2b8c751654956aef727ec7ee17091cd8e0938ac (diff)
downloadxen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.tar.gz
xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.tar.bz2
xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.zip
Clean up the usage of CFLAGS. This is nice for packagers, who would
like to control the base compilation flags from a central place. Signed-off-by: Charles Coffing <ccoffing@novell.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Config.mk b/Config.mk
index 6f48d6493c..180f932fc1 100644
--- a/Config.mk
+++ b/Config.mk
@@ -40,6 +40,8 @@ endif
test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
+CFLAGS += -Wall
+
HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)