re-enable unused-parameter Warnings

This commit is contained in:
rlar 2011-04-30 12:31:33 +00:00
parent 55638c8023
commit 7091a81272
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-04-30 Robert Larice
* configure.ac :
re-enable unused-parameter Warnings
2011-04-30 Robert Larice
* **/* :
various cleanups

View File

@ -205,7 +205,7 @@ dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g"
if test "$enable_debug" = "no"; then
if test "x$GCC" = "xyes"; then
AC_MSG_WARN(Removing debugging option!)
CFLAGS="$ext_CFLAGS -O2 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -s"
CFLAGS="$ext_CFLAGS -O2 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls -s"
else
AC_MSG_WARN(Removing debugging option!)
CFLAGS="$ext_CFLAGS -O2"
@ -213,7 +213,7 @@ if test "$enable_debug" = "no"; then
else
AC_DEFINE(NGDEBUG,1,[Compile with debug info])
if test "x$GCC" = "xyes"; then
CFLAGS="$ext_CFLAGS -g -O0 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls -Wno-unused-parameter"
CFLAGS="$ext_CFLAGS -g -O0 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls"
else
CFLAGS="$ext_CFLAGS -g"
fi