]> granicus.if.org Git - graphviz/commitdiff
-Wno-unused-parameter is only required to work around a bug in gcc-3.x.x, but it...
authorellson <devnull@localhost>
Thu, 19 Jan 2006 05:10:57 +0000 (05:10 +0000)
committerellson <devnull@localhost>
Thu, 19 Jan 2006 05:10:57 +0000 (05:10 +0000)
configure.ac

index a5da213817fc02d42de73e050c0fbaa51bda038f..4960296f78a8c776444b6bf94289f896f0cb5de7 100644 (file)
@@ -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
            ;;