mirror of
https://github.com/znc/znc.git
synced 2026-05-07 05:44:41 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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,)
|
||||
|
||||
Reference in New Issue
Block a user