unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [Patch] Only use -Werror with gcc
@ 2003-06-17 11:52 Matthias Koeppe
  2003-06-19 20:09 ` Marius Vollmer
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Koeppe @ 2003-06-17 11:52 UTC (permalink / raw)


Guile from CVS HEAD does not build with non-gcc compilers because the
-Werror flag is passed to the compiler when GUILE_ERROR_ON_WARNING is
yes (the default).

Here is a patch.

(Does anybody test Guile with non-gcc compilers?)

--- configure.in.~1.220.~	Mon Jun 16 16:49:24 2003
+++ configure.in	Tue Jun 17 13:39:37 2003
@@ -969,15 +969,6 @@
 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 @@
     ## 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

-- 
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-19 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17 11:52 [Patch] Only use -Werror with gcc Matthias Koeppe
2003-06-19 20:09 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).