mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
d4906b5d05
commit
d40d3ef988
1 file changed
+1
-2
@@ -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)
|
||||
|
||||