From: Roger Pau Monné Date: Fri, 17 Feb 2017 15:10:00 +0000 (+0100) Subject: build: enable unused value checks for clang X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2742 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d40d3ef9882650ecedadffa2ef35304b66736664;p=xen.git build: enable unused value checks for clang Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich --- diff --git a/Config.mk b/Config.mk index 7d08d16957..bff4dc5584 100644 --- 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)