r1905: add -Werror-implicit-function-declaration with --enable-developer
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Aug 2004 07:59:08 +0000 (07:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:10 +0000 (12:58 -0500)
metze
(This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a)

source4/build/smb_build/check_path.m4
source4/build/tests/summary.c
source4/build/tests/trivial.c

index 8b97f17c46f5d69b8074d23c540539dae56815a2..f2d06e384a077fcae435af58dd0b23741e66f103 100644 (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)],
index d3708c236c5c09059f87ff82ffc227e7e33e1942..8c318fe7d5e4d4fd26b284bb61089ed1829e3d9d 100644 (file)
@@ -1,5 +1,7 @@
 #include <stdio.h>
 
+void exit(int);
+
 main()
 {
 #if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64))
index 2723637a0ffc0d6af5d53018e0436bc3dba766d5..f7e96d8109c93e9a9a47f07cdab03b67fd2f2378 100644 (file)
@@ -1,3 +1,6 @@
+
+void exit(int);
+
 main()
 {
        exit(0);