configure: only enable -Werror by default in git builds #339
parent
939d49a3a9
commit
7e87587205
|
@ -301,7 +301,8 @@ AX_CFLAGS_WARN_ALL
|
|||
|
||||
dnl Enable -Werror if possible. Do it after all other tests.
|
||||
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [treat compile warnings as errors])])
|
||||
if test "$enable_werror" = "yes" || test "$GCC" = "yes" -a "$enable_werror" != "no"; then
|
||||
if test "$enable_werror" = "yes" || \
|
||||
test "$GCC" = "yes" -a "$enable_werror" != "no" -a -d "$srcdir/.git"; then
|
||||
CFLAGS="-Werror $CFLAGS"
|
||||
CXXFLAGS="-Werror $CXXFLAGS"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue