From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Koeppe Newsgroups: gmane.lisp.guile.devel Subject: [Patch] Only use -Werror with gcc Date: Tue, 17 Jun 2003 13:52:46 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1055850880 7034 80.91.224.249 (17 Jun 2003 11:54:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 11:54:40 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jun 17 13:54:35 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SF2o-0001os-00 for ; Tue, 17 Jun 2003 13:54:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SF1i-0008G1-Vs for guile-devel@m.gmane.org; Tue, 17 Jun 2003 07:53:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19SF1H-0007yj-Ka for guile-devel@gnu.org; Tue, 17 Jun 2003 07:52:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19SF1A-0007fi-6H for guile-devel@gnu.org; Tue, 17 Jun 2003 07:52:52 -0400 Original-Received: from merkur.math.uni-magdeburg.de ([141.44.75.40]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SF19-0007Xa-91 for guile-devel@gnu.org; Tue, 17 Jun 2003 07:52:51 -0400 Original-Received: from beta ([141.44.75.78] helo=beta.math.uni-magdeburg.de) by merkur.math.uni-magdeburg.de with esmtp (Exim 4.10) id 19SF16-0007XD-00 for guile-devel@gnu.org; Tue, 17 Jun 2003 13:52:48 +0200 Original-Received: (from mkoeppe@localhost) by beta.math.uni-magdeburg.de (8.11.7+Sun/8.11.7) id h5HBqke14573; Tue, 17 Jun 2003 13:52:46 +0200 (MEST) X-Authentication-Warning: beta.math.uni-magdeburg.de: mkoeppe set sender to mkoeppe@mail.math.uni-magdeburg.de using -f Original-To: guile-devel@gnu.org Original-Lines: 46 X-Warning: no 'abuse'-account in domain mail.math.uni-magdeburg.de (cf. RFC2142/4.) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2546 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2546 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) =20=20=20=09=09=09 -# 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}" =3D yes -then - CFLAGS=3D"${CFLAGS} -Werror" - enable_compile_warnings=3Dno -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=3D"$CFLAGS -Wall -Wmissing-prototypes" ;; + CFLAGS=3D"$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}" =3D yes + then + CFLAGS=3D"${CFLAGS} -Werror" + enable_compile_warnings=3Dno + fi + ;; esac =20 ## NOTE the code below sets LIBOBJS directly and so is now forbidden --=20 Matthias K=F6ppe -- http://www.math.uni-magdeburg.de/~mkoeppe _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel