xref: /openbmc/openbmc/poky/meta/recipes-extended/mdadm/files/debian-no-Werror.patch (revision 44b3caf2214045a1492e7aa14e808ac6312930e1)
1*44b3caf2SPatrick WilliamsFrom 319b3191f088cea7b0fb6038ab7625d5e049dcf7 Mon Sep 17 00:00:00 2001
2595f6308SAndrew GeisslerFrom: "martin f. krafft" <madduck@debian.org>
3595f6308SAndrew GeisslerDate: Mon, 3 Jan 2022 19:14:12 +0000
4595f6308SAndrew GeisslerSubject: [PATCH] Remove -Werror from compiler flags
5c342db35SBrad Bishop
6c342db35SBrad Bishop-Werror seems like a bad idea on released/packaged code because a toolchain
7c342db35SBrad Bishopupdate (introducing new warnings) could break the build. We'll let upstream
8c342db35SBrad Bishopuse it to beautify the code, but remove it for out builds.
9c342db35SBrad Bishop
10c342db35SBrad BishopSigned-off-by: martin f. krafft <madduck@debian.org>
11c342db35SBrad Bishop
12c342db35SBrad BishopUpstream-Status: Pending
13c342db35SBrad Bishop---
14c342db35SBrad Bishop Makefile | 2 +-
15595f6308SAndrew Geissler 1 file changed, 1 insertion(+), 1 deletion(-)
16c342db35SBrad Bishop
17595f6308SAndrew Geisslerdiff --git a/Makefile b/Makefile
18*44b3caf2SPatrick Williamsindex 9ab6a65..1141971 100644
19c342db35SBrad Bishop--- a/Makefile
20c342db35SBrad Bishop+++ b/Makefile
21595f6308SAndrew Geissler@@ -50,7 +50,7 @@ ifeq ($(origin CC),default)
22595f6308SAndrew Geissler CC := $(CROSS_COMPILE)gcc
23595f6308SAndrew Geissler endif
24c342db35SBrad Bishop CXFLAGS ?= -ggdb
25*44b3caf2SPatrick Williams-CWFLAGS ?= -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds
26*44b3caf2SPatrick Williams+CWFLAGS ?= -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds
27c342db35SBrad Bishop ifdef WARN_UNUSED
28*44b3caf2SPatrick Williams CWFLAGS += -Wp -O3
29c342db35SBrad Bishop endif
30