]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: clang 23 enable unused-but-set-global
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 19 May 2026 22:18:43 +0000 (10:18 +1200)
committerAnoop C S <anoopcs@samba.org>
Thu, 21 May 2026 08:18:46 +0000 (08:18 +0000)
All the offending code has been fixed so re-enable the warning as an error.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Thu May 21 08:18:46 UTC 2026 on atb-devel-224

buildtools/wafsamba/samba_autoconf.py

index 0ae4fd7b63d3a13200cafb7e58ad696ae43489cf..c21961e66db2b9783c89ccca7ead0e49cc867eb4 100644 (file)
@@ -848,8 +848,6 @@ int main(void) {
             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)
-            conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS',
-                                  '-Wno-error=unused-but-set-global', testflags=True)
 
     if Options.options.fatal_errors:
         conf.ADD_CFLAGS('-Wfatal-errors', testflags=True)