1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

r1905: add -Werror-implicit-function-declaration with --enable-developer

metze
(This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a)
This commit is contained in:
Stefan Metzmacher 2004-08-19 07:59:08 +00:00 committed by Gerald (Jerry) Carter
parent 75e967bd0e
commit 8dfd1daf30
3 changed files with 6 additions and 1 deletions

View File

@ -127,7 +127,7 @@ developer=no
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
[if eval "test x$enable_developer = xyes"; then
developer=yes
CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
CFLAGS="${CFLAGS} -g -Wall -Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
fi])
AC_ARG_ENABLE(krb5developer, [ --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)],

View File

@ -1,5 +1,7 @@
#include <stdio.h>
void exit(int);
main()
{
#if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64))

View File

@ -1,3 +1,6 @@
void exit(int);
main()
{
exit(0);