]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: Allow developer builds with clang 23
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 19 May 2026 04:47:05 +0000 (16:47 +1200)
committerAnoop C S <anoopcs@samba.org>
Thu, 21 May 2026 07:15:38 +0000 (07:15 +0000)
Disable the unused-but-set-global warning to allow samba to be compiled with
clang 23

Subsequent commits will fix the offending code.

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>
buildtools/wafsamba/samba_autoconf.py

index c21961e66db2b9783c89ccca7ead0e49cc867eb4..0ae4fd7b63d3a13200cafb7e58ad696ae43489cf 100644 (file)
@@ -848,6 +848,8 @@ 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)