aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2012-04-11 13:10:33 +0100
committerTim Deegan <tim@xen.org>2012-04-11 13:10:33 +0100
commit347c906bff1e51d8944d7b8e639b7cf5465a471e (patch)
treee1ce069cebd40bfe5db96b099c9dcca4c733e614 /Config.mk
parentdbfa7bba0f213b1802e1900b71bc34837c30ee52 (diff)
downloadxen-347c906bff1e51d8944d7b8e639b7cf5465a471e.tar.gz
xen-347c906bff1e51d8944d7b8e639b7cf5465a471e.tar.bz2
xen-347c906bff1e51d8944d7b8e639b7cf5465a471e.zip
xen: Add -Wno-unused-value to the clang CFLAGS
clang complains about a lot of functions and macros whose return value is unused. I started on patches to drop some functions' return values and scatter (void)s around callers, but it was getting too messy. Just turn off the warning instead. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Config.mk b/Config.mk
index 796fb8caae..0dc2d8e650 100644
--- a/Config.mk
+++ b/Config.mk
@@ -159,7 +159,8 @@ CFLAGS += -Wall -Wstrict-prototypes
# Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
# and is over-zealous with the printf format lint
-CFLAGS-$(clang) += -Wno-parentheses -Wno-format
+# and is a bit too fierce about unused return values
+CFLAGS-$(clang) += -Wno-parentheses -Wno-format -Wno-unused-value
$(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement)
$(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement)