From 5c07af6e794b6a6fd6617bfae08f1eff1c524132 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Thu, 19 Jun 2003 20:09:05 +0000 Subject: [PATCH] use "-Werror" only with GCC. Thanks to Matthias Koeppe! --- configure.in | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/configure.in b/configure.in index 717611aa7..674e8f2fe 100644 --- a/configure.in +++ b/configure.in @@ -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