From: Martin Wilck <mwilck@xxxxxxxx> clang doesn't support this option. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 59a36cd3..d4d1e0dd 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -91,10 +91,11 @@ TEST_CC_OPTION = $(shell \ STACKPROT := $(call TEST_CC_OPTION,-fstack-protector-strong,-fstack-protector) ERROR_DISCARDED_QUALIFIERS := $(call TEST_CC_OPTION,-Werror=discarded-qualifiers,) +WNOCLOBBERED := $(call TEST_CC_OPTION,-Wno-clobbered,) OPTFLAGS = -O2 -g -pipe -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int \ -Werror=implicit-function-declaration -Werror=format-security \ - -Wno-clobbered \ + $(WNOCLOBBERED) \ -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS) \ $(STACKPROT) --param=ssp-buffer-size=4 CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2 -- 2.23.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel