From 8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 19 Aug 2004 07:59:08 +0000 Subject: r1905: add -Werror-implicit-function-declaration with --enable-developer metze (This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a) --- source4/build/smb_build/check_path.m4 | 2 +- source4/build/tests/summary.c | 2 ++ source4/build/tests/trivial.c | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source4/build/smb_build/check_path.m4 b/source4/build/smb_build/check_path.m4 index 8b97f17c46..f2d06e384a 100644 --- a/source4/build/smb_build/check_path.m4 +++ b/source4/build/smb_build/check_path.m4 @@ -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)], diff --git a/source4/build/tests/summary.c b/source4/build/tests/summary.c index d3708c236c..8c318fe7d5 100644 --- a/source4/build/tests/summary.c +++ b/source4/build/tests/summary.c @@ -1,5 +1,7 @@ #include +void exit(int); + main() { #if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64)) diff --git a/source4/build/tests/trivial.c b/source4/build/tests/trivial.c index 2723637a0f..f7e96d8109 100644 --- a/source4/build/tests/trivial.c +++ b/source4/build/tests/trivial.c @@ -1,3 +1,6 @@ + +void exit(int); + main() { exit(0); -- cgit