From 7e34dd3bfafc09bb2d8e33a5f648b624b7dc0f9a Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 10 May 2008 11:32:34 +0000 Subject: [PATCH] Use -Wno-unused-parameter instead of -Wno-unused This one causes no extra warnings and -Wno-unused-parameter is exactly the reason why we had -Wno-unused. According to [1], this flag exists since GCC 3. Thanks to pippijn for telling me about this flag. [1] http://lists.auriga.wearlab.de/pipermail/dillo-dev/2003-December/001565.html git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1048 726aef4b-f618-498e-8847-2d620e286838 --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 45aae697..83c8fc0f 100755 --- a/configure +++ b/configure @@ -2524,7 +2524,7 @@ if test "$IPV6" != "no"; then fi if test "x$GXX" = "xyes"; then - appendCXX -Wall -W -Wno-unused -Woverloaded-virtual -Wshadow + appendCXX -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow fi ac_ext=c diff --git a/configure.in b/configure.in index 27f6cba1..824b2ce7 100644 --- a/configure.in +++ b/configure.in @@ -100,7 +100,7 @@ if test "$IPV6" != "no"; then fi if test "x$GXX" = "xyes"; then - appendCXX -Wall -W -Wno-unused -Woverloaded-virtual -Wshadow + appendCXX -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow fi AC_CHECK_LIB( gnugetopt, getopt_long,)