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

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