|
|
96a22b |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
96a22b |
From: Martin Wilck <mwilck@suse.com>
|
|
|
96a22b |
Date: Tue, 12 May 2020 00:39:24 +0200
|
|
|
96a22b |
Subject: [PATCH] multipath-tools: Makefile.inc: set -Wno-error=clobbered
|
|
|
96a22b |
|
|
|
96a22b |
We need to ignore -Wclobbered because gcc has trouble dealing with glibc's
|
|
|
96a22b |
implementation of pthread_cleanup_push().
|
|
|
96a22b |
|
|
|
96a22b |
For some variants of gcc, -Wno-clobbered alone isn't enough if -Werror is also
|
|
|
96a22b |
set. Compilation with -Wno-error=clobbered works, though.
|
|
|
96a22b |
|
|
|
96a22b |
Signed-off-by: Martin Wilck <mwilck@suse.com>
|
|
|
96a22b |
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
96a22b |
---
|
|
|
96a22b |
Makefile.inc | 2 +-
|
|
|
96a22b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
96a22b |
|
|
|
96a22b |
diff --git a/Makefile.inc b/Makefile.inc
|
|
|
96a22b |
index d4d1e0dd..9060ac9b 100644
|
|
|
96a22b |
--- a/Makefile.inc
|
|
|
96a22b |
+++ b/Makefile.inc
|
|
|
96a22b |
@@ -91,7 +91,7 @@ TEST_CC_OPTION = $(shell \
|
|
|
96a22b |
|
|
|
96a22b |
STACKPROT := $(call TEST_CC_OPTION,-fstack-protector-strong,-fstack-protector)
|
|
|
96a22b |
ERROR_DISCARDED_QUALIFIERS := $(call TEST_CC_OPTION,-Werror=discarded-qualifiers,)
|
|
|
96a22b |
-WNOCLOBBERED := $(call TEST_CC_OPTION,-Wno-clobbered,)
|
|
|
96a22b |
+WNOCLOBBERED := $(call TEST_CC_OPTION,-Wno-clobbered -Wno-error=clobbered,)
|
|
|
96a22b |
|
|
|
96a22b |
OPTFLAGS = -O2 -g -pipe -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int \
|
|
|
96a22b |
-Werror=implicit-function-declaration -Werror=format-security \
|
|
|
96a22b |
--
|
|
|
96a22b |
2.17.2
|
|
|
96a22b |
|