From: Gary Lockyer Date: Tue, 19 May 2026 21:26:15 +0000 (+1200) Subject: s4:torture:util_smb remove unread global procnum X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e4004cc2c2f0c187a649f2f76b7e8ac75a99dbbc;p=thirdparty%2Fsamba.git s4:torture:util_smb remove unread global procnum Removed as as it was declared and updated, but never read. This triggers the clang 23 warning unused-but-set-global Signed-off-by: Gary Lockyer Reviewed-by: Douglas Bagnall Reviewed-by: Anoop C S --- diff --git a/source4/torture/util_smb.c b/source4/torture/util_smb.c index 74badd86ae9..ec652df76a9 100644 --- a/source4/torture/util_smb.c +++ b/source4/torture/util_smb.c @@ -580,7 +580,6 @@ _PUBLIC_ bool check_error(const char *location, struct smbcli_state *c, } static struct smbcli_state *current_cli; -static int procnum; /* records process count number when forking */ static void sigcont(int sig) { @@ -626,7 +625,6 @@ double torture_create_procs(struct torture_context *tctx, tv = timeval_current(); for (i=0;i