From 10953b3a7ebe96ea75c9491bcc066c569dfd949d Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 10 Nov 2013 17:41:04 +0100 Subject: [PATCH] configure: Add check on function prototypes when debug is enabled Signed-off-by: Christophe CURIS --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 5c32ca86..bbcdcbb9 100644 --- a/configure.ac +++ b/configure.ac @@ -125,6 +125,10 @@ AS_IF([test "x$debug" = "xyes"], dnl dnl Use of 'sizeof()' on inappropriate pointer types AX_CFLAGS_GCC_OPTION([-Wpointer-arith]) + dnl + dnl Having more than 1 prototype for a function makes code updates + dnl more difficult, so try to avoid it + AX_CFLAGS_GCC_OPTION([-Wredundant-decls]) ], [dnl dnl When debug not enabled, we try to avoid some non-necessary dnl messages from the compiler