build: enable unused value checks for clang

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2017-02-17 16:10:00 +01:00
1 parent d4906b5d05
commit d40d3ef988
1 file changed
+1 -2
+1 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.