aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2011-05-21 07:55:46 +0100
committerOlaf Hering <olaf@aepfle.de>2011-05-21 07:55:46 +0100
commit5a40af4739c1402ada1a8668c1a08c4ce6a1628f (patch)
treeb704e9b0c68d8cc2b897b7d86dff2163e1ecca40 /Config.mk
parent7f2726b6264f1bf8949c6c18fb261abc33d9112b (diff)
downloadxen-5a40af4739c1402ada1a8668c1a08c4ce6a1628f.tar.gz
xen-5a40af4739c1402ada1a8668c1a08c4ce6a1628f.tar.bz2
xen-5a40af4739c1402ada1a8668c1a08c4ce6a1628f.zip
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>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Config.mk b/Config.mk
index 97b8d5b23d..d57a6e4478 100644
--- a/Config.mk
+++ b/Config.mk
@@ -146,6 +146,7 @@ CFLAGS-$(clang) += -Wno-parentheses -Wno-format
$(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))