Commit 3752d409 authored by Michel Lespinasse's avatar Michel Lespinasse
Browse files

disable -Werror by default

(it's still enabled in make distcheck though)
parent c5d6e879
......@@ -111,8 +111,8 @@ builtin([include],[libmpeg2/configure.incl])
builtin([include],[libvo/configure.incl])
AC_ARG_ENABLE([warnings],
[ --disable-warnings do not treat warnings as errors])
if test x"$enable_warnings" != x"no" -a x"$GCC" = x"yes"; then
[ --enable-warnings treat warnings as errors])
if test x"$enable_warnings" = x"yes" -a x"$GCC" = x"yes"; then
dnl compiler warnings
OPT_CFLAGS="$CFLAGS -Werror"
AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
......
......@@ -40,7 +40,7 @@ for compiler in cc gcc gcc272 gcc-2.95 gcc-3.0 gcc-3.1 checkergcc tcc icc \
fi
fi
error=1
CC=$compiler ./configure $host && make && error=0
CC=$compiler ./configure --enable-warnings $host && make && error=0
if test x"$error" != x"0"; then exit 1; fi
cd ../..
rm -fr compile_test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment