blob: 68d14b648ac766fd7681fc7de1c3300c543ce847 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001From 5dcd8e331af448e3adcb9ed15a38762a912a8267 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <pkj@axis.com>
3Date: Sat, 16 Sep 2017 15:12:37 +0200
4Subject: [PATCH 2/2] Make it build with GCC 7 and compile time hardening
5 enabled
6
7This avoids the following error:
8
9cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
10
11Upstream-Status: Inappropriate [legacy version]
12Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
13---
14 config/eu.am | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/config/eu.am b/config/eu.am
18index 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--
312.12.0
32