aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-17 15:53:42 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-17 15:53:42 +0100
commitb11b29890de673a39a5961c63edad3e674e99dab (patch)
tree5679bf2a5d68e69262a2200d7fab22c077ab11e3 /Config.mk
parentfb7382a4d9fa94c0d0b053669e20917c1bf5f733 (diff)
downloadxen-b11b29890de673a39a5961c63edad3e674e99dab.tar.gz
xen-b11b29890de673a39a5961c63edad3e674e99dab.tar.bz2
xen-b11b29890de673a39a5961c63edad3e674e99dab.zip
Don't use -Wunused-value. It's too aggressive with GCC4.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Config.mk b/Config.mk
index 74bd8ec80c..92c829dede 100644
--- a/Config.mk
+++ b/Config.mk
@@ -52,6 +52,10 @@ test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
CFLAGS += -Wall -Wstrict-prototypes
+# -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
+# result of any casted expression causes a warning.
+CFLAGS += -Wno-unused-value
+
HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)