1
0
forked from vitrine/wmaker

configure: Add check on function prototypes when debug is enabled

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-10 17:41:04 +01:00
committed by Carlos R. Mafra
parent 324248ecde
commit 10953b3a7e

View File

@@ -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