From e2ab67bda050de86ad9238b7e4d4b906980e0845 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 16 Oct 2010 17:55:26 +0000 Subject: [PATCH] stronger warning levels, redeclarations, missing prototypes, k&r style ... --- ChangeLog | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b9955c9c..6513d3358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 , diff --git a/configure.ac b/configure.ac index 6039d0f89..c990f1302 100644 --- a/configure.ac +++ b/configure.ac @@ -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