toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / ipset / 0001-Do-not-pass-Werror-when-enable-debug-is-used.patch
blobc115f6337d6d41628a3a5a59e93fd09ab1c612ef
1 From f31bb2561776ad2ce4b77339da6fbfc9e3b2ffbb Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sun, 26 Oct 2014 14:18:29 +0100
4 Subject: [PATCH] Do not pass -Werror when --enable-debug is used
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 ---
8 Make_global.am | 2 +-
9 configure.ac | 1 -
10 2 files changed, 1 insertion(+), 2 deletions(-)
12 diff --git a/Make_global.am b/Make_global.am
13 index 7953451..25c4d64 100644
14 --- a/Make_global.am
15 +++ b/Make_global.am
16 @@ -77,7 +77,7 @@ AM_CPPFLAGS = $(kinclude_CFLAGS) $(all_includes) -I$(top_srcdir)/include \
17 AM_CFLAGS = -std=gnu99
19 if ENABLE_DEBUG
20 -AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall -Werror
21 +AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall
22 else
23 AM_CFLAGS += -O2 -DNDEBUG
24 endif
25 diff --git a/configure.ac b/configure.ac
26 index 8fdac15..ee3b147 100644
27 --- a/configure.ac
28 +++ b/configure.ac
29 @@ -345,7 +345,6 @@ AX_CFLAGS_GCC_OPTION(-Waggregate-return)
30 AX_CFLAGS_GCC_OPTION(-Wbad-function-cast)
31 AX_CFLAGS_GCC_OPTION(-Wcast-align)
32 AX_CFLAGS_GCC_OPTION(-Wcast-qual)
33 -AX_CFLAGS_GCC_OPTION(-Werror)
34 AX_CFLAGS_GCC_OPTION(-Wextra)
35 AX_CFLAGS_GCC_OPTION(-Wfloat-equal)
36 AX_CFLAGS_GCC_OPTION(-Wformat=2)
37 --
38 2.0.0