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:
parent
75e967bd0e
commit
8dfd1daf30
@ -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)],
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void exit(int);
|
||||
|
||||
main()
|
||||
{
|
||||
#if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64))
|
||||
|
@ -1,3 +1,6 @@
|
||||
|
||||
void exit(int);
|
||||
|
||||
main()
|
||||
{
|
||||
exit(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user