[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Don't use -Wunused-value. It's too aggressive with GCC4.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID db3d58d30e9d79db3ba861c4fd41d6cc781c10de
# Parent  3cc0b589c235fb1d624d9118e342df10cdba403d
Don't use -Wunused-value. It's too aggressive with GCC4.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 Config.mk |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 3cc0b589c235 -r db3d58d30e9d Config.mk
--- a/Config.mk Tue Oct 17 09:59:11 2006 +0100
+++ b/Config.mk Tue Oct 17 15:53:42 2006 +0100
@@ -52,6 +52,10 @@ test-gcc-flag = $(shell $(1) -v --help 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)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.