From f597a7e50acc183c4f4670f070117f3a1f6280ce Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Sat, 25 May 2013 04:29:28 +0200 Subject: [PATCH] enable compiler warnings by default --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6a098c54..2e9d89d3 100644 --- a/configure.ac +++ b/configure.ac @@ -86,9 +86,9 @@ AC_DEFINE_UNQUOTED([DEBUG_FILE], ["${DEBUG_FILE}"], [Debug file]) AC_ARG_ENABLE( [strict], - [AS_HELP_STRING([--enable-strict],[enable strict compile mode @<:@disabled@:>@])], + [AS_HELP_STRING([--disable-strict],[disable strict compile mode @<:@disabled@:>@])], , - [enable_strict="no"] + [enable_strict="yes"] ) AC_ARG_ENABLE( @@ -591,10 +591,10 @@ AM_CONDITIONAL([ENABLE_SM], [test "${enable_sm}" = "yes"]) if test "${enable_pedantic}" = "yes"; then enable_strict="yes"; - CFLAGS="${CFLAGS} -pedantic" + CFLAGS="${CFLAGS} -pedantic -Wextra" fi if test "${enable_strict}" = "yes"; then - CFLAGS="${CFLAGS} -Wall -Wextra" + CFLAGS="${CFLAGS} -Wall" fi if test "$GCC" = "yes"; then # This should be resolved not ignored.