]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture:util_smb remove unread global procnum
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 19 May 2026 21:26:15 +0000 (09:26 +1200)
committerAnoop C S <anoopcs@samba.org>
Thu, 21 May 2026 07:15:38 +0000 (07:15 +0000)
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 <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source4/torture/util_smb.c

index 74badd86ae9bcd30ea3bee50b40208d50afe8992..ec652df76a95b14e192af3ffe98958702cb97e93 100644 (file)
@@ -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<torture_nprocs;i++) {
-               procnum = i;
                if (fork() == 0) {
                        char *myname;
                        bool ok;