build: Add -Werror=address to the developer build
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Jul 2012 09:25:11 +0000 (19:25 +1000)
committerJeremy Allison <jra@samba.org>
Mon, 23 Jul 2012 22:09:46 +0000 (00:09 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/samba_autoconf.py

index be5e9267ddfee804e00327138add81f5e98c1770..3e4b06a9639392303c61cf3c8a3d793bb634b00d 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',
+        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',
                         testflags=True)
         conf.ADD_CFLAGS('-Wcast-qual', testflags=True)
         conf.env.DEVELOPER_MODE = True