[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-cvs
Subject:    [Xen-changelog] [xen-unstable] gcc-4.6 compile fix: build with
From:       Xen patchbot-unstable <patchbot () xen ! org>
Date:       2011-05-24 3:05:10
Message-ID: E1QOhvj-0002O3-P4 () xenbits ! xen ! org
[Download RAW message or body]

# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1305960946 -3600
# Node ID 0f670f5146c858ffdc743176d4e22aef4bfe12da
# Parent  fb517cc27adef3a7ad548e7397e02e1414132ead
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@aepfle.de>
---


diff -r fb517cc27ade -r 0f670f5146c8 Config.mk
--- a/Config.mk	Fri May 20 18:20:09 2011 +0100
+++ b/Config.mk	Sat May 21 07:55:46 2011 +0100
@@ -146,6 +146,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@lists.xensource.com
http://lists.xensource.com/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic