rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | From 5dcd8e331af448e3adcb9ed15a38762a912a8267 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Kjellerstedt <pkj@axis.com> |
| 3 | Date: Sat, 16 Sep 2017 15:12:37 +0200 |
| 4 | Subject: [PATCH 2/2] Make it build with GCC 7 and compile time hardening |
| 5 | enabled |
| 6 | |
| 7 | This avoids the following error: |
| 8 | |
| 9 | cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security] |
| 10 | |
| 11 | Upstream-Status: Inappropriate [legacy version] |
| 12 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> |
| 13 | --- |
| 14 | config/eu.am | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/config/eu.am b/config/eu.am |
| 18 | index 8066d7f..7de66b0 100644 |
| 19 | --- a/config/eu.am |
| 20 | +++ b/config/eu.am |
| 21 | @@ -33,7 +33,7 @@ INCLUDES = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. |
| 22 | AM_CFLAGS = -std=gnu99 -Wall -Wshadow \ |
| 23 | $(if $($(*F)_no_Werror),,-Werror) \ |
| 24 | $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \ |
| 25 | - $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \ |
| 26 | + $(if $($(*F)_no_Wformat),-Wno-format -Wno-format-security,-Wformat=2) \ |
| 27 | $($(*F)_CFLAGS) |
| 28 | |
| 29 | if MUDFLAP |
| 30 | -- |
| 31 | 2.12.0 |
| 32 | |