]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: add -Werror=tautological-compare
authorStefan Metzmacher <metze@samba.org>
Thu, 28 May 2026 09:26:31 +0000 (11:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 May 2026 17:39:48 +0000 (17:39 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=16092

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
buildtools/wafsamba/samba_autoconf.py

index ddd56efa2e100faa69a9b7d80617249e40318c0e..c15846a3868b586145ed0991d53d58830961ae03 100644 (file)
@@ -816,6 +816,8 @@ def SAMBA_CONFIG_H(conf, path=None):
                         testflags=True)
         conf.ADD_CFLAGS('-Werror=stringop-overflow',
                         testflags=True)
+        conf.ADD_CFLAGS('-Werror=tautological-compare',
+                        testflags=True)
 
         conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
         conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True)