ia64/xen-unstable

changeset 11835:db3d58d30e9d

Don't use -Wunused-value. It's too aggressive with GCC4.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Oct 17 15:53:42 2006 +0100 (2006-10-17)
parents 3cc0b589c235
children ed9c393b3c4f
files Config.mk
line diff
     1.1 --- a/Config.mk	Tue Oct 17 09:59:11 2006 +0100
     1.2 +++ b/Config.mk	Tue Oct 17 15:53:42 2006 +0100
     1.3 @@ -52,6 +52,10 @@ test-gcc-flag = $(shell $(1) -v --help 2
     1.4  
     1.5  CFLAGS += -Wall -Wstrict-prototypes
     1.6  
     1.7 +# -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
     1.8 +# result of any casted expression causes a warning.
     1.9 +CFLAGS += -Wno-unused-value
    1.10 +
    1.11  HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
    1.12  CFLAGS     += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
    1.13