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

[Xen-changelog] [xen-4.1-testing] gcc-4.6 compile fix: build with -Wno-unused-but-set-variable



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305960988 -3600
# Node ID fd252cee3b42608ef132ed1c3c74bb07cb716dca
# Parent  3e6df1641fb2801afde9a127a38a318facc43ea2
gcc-4.6 compile fix: build with -Wno-unused-but-set-variable

Avoid "error: variable 'unused' set but not used
[-Werror=unused-but-set-variable]" with gcc 4.6.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
xen-unstable changeset:   23368:0f670f5146c8
xen-unstable date:        Sat May 21 07:55:46 2011 +0100
---


diff -r 3e6df1641fb2 -r fd252cee3b42 Config.mk
--- a/Config.mk Fri May 20 13:50:33 2011 +0100
+++ b/Config.mk Sat May 21 07:56:28 2011 +0100
@@ -150,6 +150,7 @@
 
 $(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement)
 $(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement)
+$(call cc-option-add,CFLAGS,CC,-Wno-unused-but-set-variable)
 
 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) 
 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))

_______________________________________________
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®.