]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: enable tautological-compare errors
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 27 May 2026 21:39:30 +0000 (09:39 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 May 2026 17:39:48 +0000 (17:39 +0000)
Now that all the warnings have been removed, and as they did in fact reveal
real issues lets make it an error.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=16092

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
buildtools/wafsamba/samba_autoconf.py

index d7f7baa334d1aa4b97f7f3df19f8f42c04ab3043..ddd56efa2e100faa69a9b7d80617249e40318c0e 100644 (file)
@@ -850,7 +850,6 @@ int main(void) {
 
         if not Options.options.disable_warnings_as_errors:
             conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Werror -Wno-error=deprecated-declarations', testflags=True)
-            conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=tautological-compare', testflags=True)
             conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=cast-align', testflags=True)
 
     if Options.options.fatal_errors: