summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-19 07:59:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:10 -0500
commit8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f (patch)
tree712cf903b71e8a2037da46e0252c3eb48923c734 /source4/build
parent75e967bd0e93a22375cd3bccee17204f2ea27bc2 (diff)
downloadsamba-8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f.tar.gz
samba-8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f.tar.bz2
samba-8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f.zip
r1905: add -Werror-implicit-function-declaration with --enable-developer
metze (This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/smb_build/check_path.m42
-rw-r--r--source4/build/tests/summary.c2
-rw-r--r--source4/build/tests/trivial.c3
3 files changed, 6 insertions, 1 deletions
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 <stdio.h>
+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);