Branch: Tag:

2014-11-08

2014-11-08 23:11:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Added configure option --enable-werror.

The configure option --enable-werror now adds -Werror
to the set of WARN flags.

1675:   AC_ARG_ENABLE(pedantic, MY_DESCR([--enable-pedantic],    [enable -pedantic compilation]))    + AC_ARG_ENABLE(werror, MY_DESCR([--enable-werror], +  [enable -Werror compilation])) +    if test "$cflags_is_set" = "no"; then    if test "x$with_cdebug" = "xno" ; then    CFLAGS=`echo " $CFLAGS " | sed -e 's@ -g @ @g'`
1686:    AC_SYS_COMPILER_FLAG(-pedantic,pedantic,WARN)    fi    +  if test "x$enable_werror" = "xyes"; then +  AC_SYS_COMPILER_FLAG(-Werror,error,WARN) +  fi       if test "x${GCC-}" = xyes ; then    # Do not use -Wall, since that produces a lot of warnings that are not