mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-22 06:54:20 +01:00
configure: Add check on function prototypes when debug is enabled
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
324248ecde
commit
10953b3a7e
@@ -125,6 +125,10 @@ AS_IF([test "x$debug" = "xyes"],
|
|||||||
dnl
|
dnl
|
||||||
dnl Use of 'sizeof()' on inappropriate pointer types
|
dnl Use of 'sizeof()' on inappropriate pointer types
|
||||||
AX_CFLAGS_GCC_OPTION([-Wpointer-arith])
|
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
|
||||||
dnl When debug not enabled, we try to avoid some non-necessary
|
dnl When debug not enabled, we try to avoid some non-necessary
|
||||||
dnl messages from the compiler
|
dnl messages from the compiler
|
||||||
|
|||||||
Reference in New Issue
Block a user