Mercurial > dillo_port1.3
changeset 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 | e63f6fc75427 |
files | configure.in |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
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"