build: enable unused value checks for clang
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 17 Feb 2017 15:10:00 +0000 (16:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Feb 2017 15:10:00 +0000 (16:10 +0100)
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Config.mk

index 7d08d16957ac987f81ff1e3effa410e3a9224104..bff4dc55848487657d2b67a40b9f530cd231eedc 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -213,8 +213,7 @@ CFLAGS += -std=gnu99
 CFLAGS += -Wall -Wstrict-prototypes
 
 # Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
-# and is a bit too fierce about unused return values
-CFLAGS-$(clang) += -Wno-parentheses -Wno-unused-value
+CFLAGS-$(clang) += -Wno-parentheses
 
 $(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement)
 $(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement)