diff options
author | Andreas Schneider <asn@samba.org> | 2022-10-27 08:43:39 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-10-27 18:18:36 +0000 |
commit | 0e8949bde01b5007612c1c0a17e10d2c5bbb1846 (patch) | |
tree | dad0ecd5a472bd73cc7b244175cdb02a63d5629d /buildtools | |
parent | b787692b5e915031d4653bf375995320ed1aca07 (diff) | |
download | samba-0e8949bde01b5007612c1c0a17e10d2c5bbb1846.tar.gz |
wafsamba: Add -Werror=old-style-definition
See https://fedoraproject.org/wiki/Changes/PortingToModernC
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 3ca2f334190..47093dec7c0 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -787,6 +787,8 @@ def SAMBA_CONFIG_H(conf, path=None): testflags=True) conf.ADD_CFLAGS('-Werror=strict-overflow -Wstrict-overflow=2', testflags=True) + conf.ADD_CFLAGS('-Werror=old-style-definition -Wold-style-definition', + testflags=True) conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True) conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True) |