Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 1 | From adb75f0bdec97dbe4aa15cc988d349775f7995ff Mon Sep 17 00:00:00 2001 |
| 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 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 13 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 14 | --- |
| 15 | Makefile | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/Makefile b/Makefile |
| 19 | index 716c97c..40354ea 100644 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 20 | --- a/Makefile |
| 21 | +++ b/Makefile |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 22 | @@ -50,7 +50,7 @@ ifeq ($(origin CC),default) |
| 23 | CC := $(CROSS_COMPILE)gcc |
| 24 | endif |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 25 | CXFLAGS ?= -ggdb |
| 26 | -CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter |
| 27 | +CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter |
| 28 | ifdef WARN_UNUSED |
| 29 | CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 |
| 30 | endif |