aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-05-16 01:06:02 +0000
committercorvid <corvid@lavabit.com>2011-05-16 01:06:02 +0000
commit7aa8c280ce3bef35959098995d892c68cbabb09b (patch)
treec6a0b3fbcd36b7f8de09801f22e39a0ebce671ca
parent3330985bbe5af2824005d047925b75ebdb7b2de1 (diff)
-Wno-unused-parameter for all gcc versions, not just 3.x
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-May/008315.html
-rw-r--r--configure.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index f5ba9259..f0a011c2 100644
--- a/configure.in
+++ b/configure.in
@@ -442,10 +442,8 @@ if eval "test x$GCC = xyes"; then
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"