diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-17 15:53:42 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-17 15:53:42 +0100 |
commit | b11b29890de673a39a5961c63edad3e674e99dab (patch) | |
tree | 5679bf2a5d68e69262a2200d7fab22c077ab11e3 /Config.mk | |
parent | fb7382a4d9fa94c0d0b053669e20917c1bf5f733 (diff) | |
download | xen-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.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |