build: Add more -Werror flags now the tree is clean of these errors
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2012 03:40:57 +0000 (13:40 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2012 06:23:24 +0000 (08:23 +0200)
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 30 08:23:24 CEST 2012 on sn-devel-104

buildtools/wafsamba/samba_autoconf.py

index 3e4b06a9639392303c61cf3c8a3d793bb634b00d..cfab476ad284fee034151062c33bfe38310ac8a6 100644 (file)
@@ -622,7 +622,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-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address',
+        conf.ADD_CFLAGS('-Wall -g -Wshadow -Werror=strict-prototypes -Wstrict-prototypes -Werror=pointer-arith -Wpointer-arith -Wcast-align -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Werror=format -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Werror=address',
                         testflags=True)
         conf.ADD_CFLAGS('-Wcast-qual', testflags=True)
         conf.env.DEVELOPER_MODE = True