diff configure.in @ 2020:477a93f3ce22

-Wno-unused-parameter for all gcc versions, not just 3.x http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-May/008315.html
author corvid <corvid@lavabit.com>
date Mon, 16 May 2011 01:06:02 +0000
parents 4f266c0c954b
children
line wrap: on
line diff
--- a/configure.in	Sun May 15 22:01:44 2011 +0000
+++ b/configure.in	Mon May 16 01:06:02 2011 +0000
@@ -442,10 +442,8 @@
   if test "`echo $CFLAGS | grep -e '-W ' -e '-W$' 2> /dev/null`" = ""; then
     CFLAGS="$CFLAGS -W"
   fi
-  if test "`echo $CFLAGS | grep '\-W[^a]' 2> /dev/null`" = ""; then
-    if test "`$CC -v 2>&1 | grep 'version 3'`" != ""; then
-      CFLAGS="$CFLAGS -W -Wno-unused-parameter"
-    fi
+  if test "`echo $CFLAGS | grep '\-Wno-unused-parameter' 2> /dev/null`" = ""; then
+    CFLAGS="$CFLAGS -Wno-unused-parameter"
   fi
   if test "`echo $CFLAGS | grep '\-Waggregate-return' 2> /dev/null`" = ""; then
     CFLAGS="$CFLAGS -Waggregate-return"