diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/files/debian-no-Werror.patch')
-rw-r--r-- | meta/recipes-extended/mdadm/files/debian-no-Werror.patch | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/meta/recipes-extended/mdadm/files/debian-no-Werror.patch b/meta/recipes-extended/mdadm/files/debian-no-Werror.patch index e66a15cd79..b758fcd0ab 100644 --- a/meta/recipes-extended/mdadm/files/debian-no-Werror.patch +++ b/meta/recipes-extended/mdadm/files/debian-no-Werror.patch | |||
@@ -1,5 +1,7 @@ | |||
1 | From: martin f. krafft <madduck@debian.org> | 1 | From 319b3191f088cea7b0fb6038ab7625d5e049dcf7 Mon Sep 17 00:00:00 2001 |
2 | Subject: Remove -Werror from compiler flags | 2 | From: "martin f. krafft" <madduck@debian.org> |
3 | Date: Mon, 3 Jan 2022 19:14:12 +0000 | ||
4 | Subject: [PATCH] Remove -Werror from compiler flags | ||
3 | 5 | ||
4 | -Werror seems like a bad idea on released/packaged code because a toolchain | 6 | -Werror seems like a bad idea on released/packaged code because a toolchain |
5 | update (introducing new warnings) could break the build. We'll let upstream | 7 | update (introducing new warnings) could break the build. We'll let upstream |
@@ -9,17 +11,19 @@ Signed-off-by: martin f. krafft <madduck@debian.org> | |||
9 | 11 | ||
10 | Upstream-Status: Pending | 12 | Upstream-Status: Pending |
11 | --- | 13 | --- |
12 | Makefile | 2 +- | 14 | Makefile | 2 +- |
13 | 1 files changed, 1 insertions(+), 1 deletions(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 16 | ||
17 | diff --git a/Makefile b/Makefile | ||
18 | index 9ab6a65..1141971 100644 | ||
15 | --- a/Makefile | 19 | --- a/Makefile |
16 | +++ b/Makefile | 20 | +++ b/Makefile |
17 | @@ -48,7 +48,7 @@ endif | 21 | @@ -50,7 +50,7 @@ ifeq ($(origin CC),default) |
18 | 22 | CC := $(CROSS_COMPILE)gcc | |
19 | CC ?= $(CROSS_COMPILE)gcc | 23 | endif |
20 | CXFLAGS ?= -ggdb | 24 | CXFLAGS ?= -ggdb |
21 | -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 |
22 | +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 |
23 | ifdef WARN_UNUSED | 27 | ifdef WARN_UNUSED |
24 | CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 | 28 | CWFLAGS += -Wp -O3 |
25 | endif | 29 | endif |