]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: Add -Werror=implicit-int
authorAndreas Schneider <asn@samba.org>
Thu, 27 Oct 2022 06:27:13 +0000 (08:27 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 27 Oct 2022 18:18:36 +0000 (18:18 +0000)
https://fedoraproject.org/wiki/Changes/PortingToModernC

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 47093dec7c00129a24c3db3e17582070c425e2e9..f3168f94a51e2cf6b36af90fe78ac5a83f3f21f1 100644 (file)
@@ -775,6 +775,8 @@ def SAMBA_CONFIG_H(conf, path=None):
                         testflags=True)
         conf.ADD_CFLAGS('-Werror-implicit-function-declaration',
                         testflags=True)
+        conf.ADD_CFLAGS('-Werror=implicit-int',
+                        testflags=True)
         conf.ADD_CFLAGS('-Werror=pointer-arith -Wpointer-arith',
                         testflags=True)
         conf.ADD_CFLAGS('-Werror=declaration-after-statement -Wdeclaration-after-statement',