From: Gary Lockyer Date: Tue, 19 May 2026 04:47:05 +0000 (+1200) Subject: build: Allow developer builds with clang 23 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=6b3314de8b8b2fda24efe66f418bf8929f3bb223;p=thirdparty%2Fsamba.git build: Allow developer builds with clang 23 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 Reviewed-by: Douglas Bagnall Reviewed-by: Anoop C S --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index c21961e66db..0ae4fd7b63d 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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)