diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-05-21 07:55:46 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-05-21 07:55:46 +0100 |
commit | 5a40af4739c1402ada1a8668c1a08c4ce6a1628f (patch) | |
tree | b704e9b0c68d8cc2b897b7d86dff2163e1ecca40 /Config.mk | |
parent | 7f2726b6264f1bf8949c6c18fb261abc33d9112b (diff) | |
download | xen-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.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) |