From: Stefan Metzmacher Date: Thu, 28 May 2026 09:26:31 +0000 (+0200) Subject: build: add -Werror=tautological-compare X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb188140357a5d8796c47c5fd88c8a25117bda8e;p=thirdparty%2Fsamba.git build: add -Werror=tautological-compare BUG: https://bugzilla.samba.org/show_bug.cgi?id=16092 Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index ddd56efa2e1..c15846a3868 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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)