waf: added -Wmissing-prototypes to build
authorAndrew Tridgell <tridge@samba.org>
Wed, 8 Dec 2010 04:04:33 +0000 (15:04 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 8 Dec 2010 05:12:07 +0000 (06:12 +0100)
This ensures that we always have a prototype for any function we
declare

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec  8 06:12:07 CET 2010 on sn-devel-104

buildtools/wafsamba/samba_autoconf.py

index 03031a7c78af777535f0e020f7c6cd45d9a8eeb4..b6d0b358d6bf81b2b04bb866e24805005ac25d6a 100644 (file)
@@ -587,7 +587,7 @@ def SAMBA_CONFIG_H(conf, path=None):
 
     if Options.options.developer:
         # we add these here to ensure that -Wstrict-prototypes is not set during configure
-        conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k',
+        conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes',
                         testflags=True)
         conf.env.DEVELOPER_MODE = True