1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-04 11:10:27 +02:00

use "-Werror" only with GCC. Thanks to Matthias Koeppe!

This commit is contained in:
Marius Vollmer 2003-06-19 20:09:05 +00:00
parent fbf85ba4d8
commit 5c07af6e79

View file

@ -969,15 +969,6 @@ if test "$cross_compiling" = "yes"; then
fi
AC_SUBST(GUILE_FOR_BUILD)
# Do this here so we don't screw up any of the tests above that might
# not be "warning free"
if test "${GUILE_ERROR_ON_WARNING}" = yes
then
CFLAGS="${CFLAGS} -Werror"
enable_compile_warnings=no
fi
## If we're using GCC, ask for aggressive warnings.
case "$GCC" in
yes )
@ -986,7 +977,15 @@ case "$GCC" in
## less than exasperating.
## -Wpointer-arith was here too, but something changed in gcc/glibc
## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" ;;
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
# Do this here so we don't screw up any of the tests above that might
# not be "warning free"
if test "${GUILE_ERROR_ON_WARNING}" = yes
then
CFLAGS="${CFLAGS} -Werror"
enable_compile_warnings=no
fi
;;
esac
## NOTE the code below sets LIBOBJS directly and so is now forbidden