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>
10 2 files changed, 1 insertion(+), 2 deletions(-)
12 diff --git a/Make_global.am b/Make_global.am
13 index 7953451..25c4d64 100644
16 @@ -77,7 +77,7 @@ AM_CPPFLAGS = $(kinclude_CFLAGS) $(all_includes) -I$(top_srcdir)/include \
17 AM_CFLAGS = -std=gnu99
20 -AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall -Werror
21 +AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall
23 AM_CFLAGS += -O2 -DNDEBUG
25 diff --git a/configure.ac b/configure.ac
26 index 8fdac15..ee3b147 100644
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)