Blame SOURCES/0006-multipath-tools-Makefile.inc-set-Wno-error-clobbered.patch

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