Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | From: martin f. krafft <madduck@debian.org> |
| 2 | Subject: Remove -Werror from compiler flags |
| 3 | |
| 4 | -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 |
| 6 | use it to beautify the code, but remove it for out builds. |
| 7 | |
| 8 | Signed-off-by: martin f. krafft <madduck@debian.org> |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | --- |
| 12 | Makefile | 2 +- |
| 13 | 1 files changed, 1 insertions(+), 1 deletions(-) |
| 14 | |
| 15 | --- a/Makefile |
| 16 | +++ b/Makefile |
| 17 | @@ -48,7 +48,7 @@ endif |
| 18 | |
| 19 | CC ?= $(CROSS_COMPILE)gcc |
| 20 | CXFLAGS ?= -ggdb |
| 21 | -CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter |
| 22 | +CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter |
| 23 | ifdef WARN_UNUSED |
| 24 | CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 |
| 25 | endif |