[dm-devel] [PATCH 72/72] multipath-tools: Makefile.inc: test for -Wno-clobbered support
Martin Wilck
Martin.Wilck at suse.com
Sat Oct 12 21:29:07 UTC 2019
From: Martin Wilck <mwilck at suse.com>
clang doesn't support this option.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
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
More information about the dm-devel
mailing list