From: ellson Date: Thu, 19 Jan 2006 05:10:57 +0000 (+0000) Subject: -Wno-unused-parameter is only required to work around a bug in gcc-3.x.x, but it... X-Git-Tag: LAST_LIBGRAPH~32^2~6851 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3449b7d721f1a9214082761affd2f03f23a40e6;p=graphviz -Wno-unused-parameter is only required to work around a bug in gcc-3.x.x, but it wasn't available in gcc-2.9x --- diff --git a/configure.ac b/configure.ac index a5da21381..4960296f7 100644 --- a/configure.ac +++ b/configure.ac @@ -187,7 +187,12 @@ else CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math" ;; * ) - CFLAGS="${CFLAGS} -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math" + # -Wno-unused-parameter only needed for bug in gcc3 + # this test from: http://cvs.auriga.wearlab.de/cgi-bin/cvsweb.cgi/dillo/configure.in?rev=1.90;content-type=text%2Fplain;cvsroot=dillo + if test "`$CC -v 2>&1 | grep 'version 3'`" != ""; then + CFLAGS="${CFLAGS} -Wno-unused-parameter" + fi + CFLAGS="${CFLAGS} -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math" ;; esac ;;