aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/0001-Disable-Werror-and-O2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/multipath-tools/0001-Disable-Werror-and-O2.patch')
-rw-r--r--main/multipath-tools/0001-Disable-Werror-and-O2.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/multipath-tools/0001-Disable-Werror-and-O2.patch b/main/multipath-tools/0001-Disable-Werror-and-O2.patch
new file mode 100644
index 0000000000..a34f71b12c
--- /dev/null
+++ b/main/multipath-tools/0001-Disable-Werror-and-O2.patch
@@ -0,0 +1,27 @@
+From c52875c963eade8c7c10d06a9e5d6dd53e60e518 Mon Sep 17 00:00:00 2001
+From: Leonardo Arena <rnalrd@alpinelinux.org>
+Date: Mon, 16 Nov 2020 09:27:56 +0000
+Subject: [PATCH] Disable Werror and O2
+
+---
+ Makefile.inc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.inc b/Makefile.inc
+index e05f3a9..d523e6f 100644
+--- a/Makefile.inc
++++ b/Makefile.inc
+@@ -93,8 +93,8 @@ 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 -Wno-error=clobbered,)
+
+-OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4
+-WARNFLAGS := -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int \
++OPTFLAGS := -g $(STACKPROT) --param=ssp-buffer-size=4
++WARNFLAGS := -Wall -Wextra -Wformat=2 -Werror=implicit-int \
+ -Werror=implicit-function-declaration -Werror=format-security \
+ $(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS)
+ CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2
+--
+2.28.0
+