summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/debian-no-Werror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/files/debian-no-Werror.patch')
-rw-r--r--meta/recipes-extended/mdadm/files/debian-no-Werror.patch11
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-extended/mdadm/files/debian-no-Werror.patch b/meta/recipes-extended/mdadm/files/debian-no-Werror.patch
index fa90647489..b758fcd0ab 100644
--- a/meta/recipes-extended/mdadm/files/debian-no-Werror.patch
+++ b/meta/recipes-extended/mdadm/files/debian-no-Werror.patch
@@ -1,4 +1,4 @@
1From adb75f0bdec97dbe4aa15cc988d349775f7995ff Mon Sep 17 00:00:00 2001 1From 319b3191f088cea7b0fb6038ab7625d5e049dcf7 Mon Sep 17 00:00:00 2001
2From: "martin f. krafft" <madduck@debian.org> 2From: "martin f. krafft" <madduck@debian.org>
3Date: Mon, 3 Jan 2022 19:14:12 +0000 3Date: Mon, 3 Jan 2022 19:14:12 +0000
4Subject: [PATCH] Remove -Werror from compiler flags 4Subject: [PATCH] Remove -Werror from compiler flags
@@ -10,21 +10,20 @@ use it to beautify the code, but remove it for out builds.
10Signed-off-by: martin f. krafft <madduck@debian.org> 10Signed-off-by: martin f. krafft <madduck@debian.org>
11 11
12Upstream-Status: Pending 12Upstream-Status: Pending
13
14--- 13---
15 Makefile | 2 +- 14 Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
17 16
18diff --git a/Makefile b/Makefile 17diff --git a/Makefile b/Makefile
19index 716c97c..40354ea 100644 18index 9ab6a65..1141971 100644
20--- a/Makefile 19--- a/Makefile
21+++ b/Makefile 20+++ b/Makefile
22@@ -50,7 +50,7 @@ ifeq ($(origin CC),default) 21@@ -50,7 +50,7 @@ ifeq ($(origin CC),default)
23 CC := $(CROSS_COMPILE)gcc 22 CC := $(CROSS_COMPILE)gcc
24 endif 23 endif
25 CXFLAGS ?= -ggdb 24 CXFLAGS ?= -ggdb
26-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter 25-CWFLAGS ?= -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds
27+CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter 26+CWFLAGS ?= -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds
28 ifdef WARN_UNUSED 27 ifdef WARN_UNUSED
29 CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 28 CWFLAGS += -Wp -O3
30 endif 29 endif