stronger warning levels, redeclarations, missing prototypes, k&r style ...

This commit is contained in:
rlar 2010-10-16 17:55:26 +00:00
parent 196262dd1b
commit e2ab67bda0
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-10-16 Robert Larice
* configure.ac :
stronger warning levels, redeclarations, missing prototypes, k&r style ...
2010-10-16 Robert Larice
* src/main.c ,
* src/frontend/Makefile.am ,

View File

@ -214,7 +214,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 -Wno-unused-parameter -s"
CFLAGS="$ext_CFLAGS -O2 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -s"
else
AC_MSG_WARN(Removing debugging option!)
CFLAGS="$ext_CFLAGS -O2"
@ -222,7 +222,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 -Wno-unused-parameter"
CFLAGS="$ext_CFLAGS -g -O0 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls -Wno-unused-parameter"
else
CFLAGS="$ext_CFLAGS -g"
fi