diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-03-10 16:15:14 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-02 09:03:45 +0200 |
commit | 2f059329b0aa617907f25d31c9d65ccaa54e78e9 (patch) | |
tree | 15be2332e7d7be0f446e0cb1dd837ef5f01d2c2e | |
parent | e21aa7bf098a7f2e9c0d0b5bd73dbfcc73ec494a (diff) | |
download | samba-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>
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index c0430bcb3b..0cc53bd834 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 |