blob: b758fcd0ab2a00d4d20d38dac4adc12e1c762ca1 [file] [log] [blame]
Patrick Williams44b3caf2024-04-12 16:51:14 -05001From 319b3191f088cea7b0fb6038ab7625d5e049dcf7 Mon Sep 17 00:00:00 2001
Andrew Geissler595f6302022-01-24 19:11:47 +00002From: "martin f. krafft" <madduck@debian.org>
3Date: Mon, 3 Jan 2022 19:14:12 +0000
4Subject: [PATCH] Remove -Werror from compiler flags
Brad Bishopc342db32019-05-15 21:57:59 -04005
6-Werror seems like a bad idea on released/packaged code because a toolchain
7update (introducing new warnings) could break the build. We'll let upstream
8use it to beautify the code, but remove it for out builds.
9
10Signed-off-by: martin f. krafft <madduck@debian.org>
11
12Upstream-Status: Pending
Andrew Geissler595f6302022-01-24 19:11:47 +000013---
14 Makefile | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/Makefile b/Makefile
Patrick Williams44b3caf2024-04-12 16:51:14 -050018index 9ab6a65..1141971 100644
Brad Bishopc342db32019-05-15 21:57:59 -040019--- a/Makefile
20+++ b/Makefile
Andrew Geissler595f6302022-01-24 19:11:47 +000021@@ -50,7 +50,7 @@ ifeq ($(origin CC),default)
22 CC := $(CROSS_COMPILE)gcc
23 endif
Brad Bishopc342db32019-05-15 21:57:59 -040024 CXFLAGS ?= -ggdb
Patrick Williams44b3caf2024-04-12 16:51:14 -050025-CWFLAGS ?= -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds
26+CWFLAGS ?= -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds
Brad Bishopc342db32019-05-15 21:57:59 -040027 ifdef WARN_UNUSED
Patrick Williams44b3caf2024-04-12 16:51:14 -050028 CWFLAGS += -Wp -O3
Brad Bishopc342db32019-05-15 21:57:59 -040029 endif