Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 1 | From 319b3191f088cea7b0fb6038ab7625d5e049dcf7 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 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 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 5 | |
| 6 | -Werror seems like a bad idea on released/packaged code because a toolchain |
| 7 | update (introducing new warnings) could break the build. We'll let upstream |
| 8 | use it to beautify the code, but remove it for out builds. |
| 9 | |
| 10 | Signed-off-by: martin f. krafft <madduck@debian.org> |
| 11 | |
| 12 | Upstream-Status: Pending |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 13 | --- |
| 14 | Makefile | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/Makefile b/Makefile |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 18 | index 9ab6a65..1141971 100644 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 19 | --- a/Makefile |
| 20 | +++ b/Makefile |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 21 | @@ -50,7 +50,7 @@ ifeq ($(origin CC),default) |
| 22 | CC := $(CROSS_COMPILE)gcc |
| 23 | endif |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 24 | CXFLAGS ?= -ggdb |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 25 | -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 Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 27 | ifdef WARN_UNUSED |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 28 | CWFLAGS += -Wp -O3 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 29 | endif |