summaryrefslogtreecommitdiffstats
path: root/buildtools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-03-10 16:15:14 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-04-02 09:03:45 +0200
commit2f059329b0aa617907f25d31c9d65ccaa54e78e9 (patch)
tree15be2332e7d7be0f446e0cb1dd837ef5f01d2c2e /buildtools
parente21aa7bf098a7f2e9c0d0b5bd73dbfcc73ec494a (diff)
downloadsamba-2f059329b0aa617907f25d31c9d65ccaa54e78e9.tar.gz
samba-2f059329b0aa617907f25d31c9d65ccaa54e78e9.tar.xz
samba-2f059329b0aa617907f25d31c9d65ccaa54e78e9.zip
wafsamba: use -Werror=declaration-after-statement if available
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index c0430bcb3b6..0cc53bd8348 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -654,7 +654,6 @@ def SAMBA_CONFIG_H(conf, path=None):
conf.ADD_CFLAGS('-Wmissing-prototypes', testflags=True)
conf.ADD_CFLAGS('-Wcast-align -Wcast-qual', testflags=True)
conf.ADD_CFLAGS('-fno-common', testflags=True)
- conf.ADD_CFLAGS('-Wdeclaration-after-statement', testflags=True)
conf.ADD_CFLAGS('-Werror=address', testflags=True)
# we add these here to ensure that -Wstrict-prototypes is not set during configure
@@ -666,6 +665,8 @@ def SAMBA_CONFIG_H(conf, path=None):
testflags=True)
conf.ADD_CFLAGS('-Werror=pointer-arith -Wpointer-arith',
testflags=True)
+ conf.ADD_CFLAGS('-Werror=declaration-after-statement -Wdeclaration-after-statement',
+ testflags=True)
conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
# This check is because for ldb_search(), a NULL format string