]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture:raw:offline remove unread global num_connected
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 19 May 2026 21:58:56 +0000 (09:58 +1200)
committerAnoop C S <anoopcs@samba.org>
Thu, 21 May 2026 07:15:38 +0000 (07:15 +0000)
Removed 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/raw/offline.c

index 262003f69a331cf21bdc2c31bc9c6712683b5bdd..3ddb8ebd6090012db1c47bd394607ed6be7aab1f 100644 (file)
@@ -35,7 +35,6 @@
 
 static int nconnections;
 static int numstates;
-static int num_connected;
 static int test_failed;
 extern int torture_numops;
 extern int torture_entries;
@@ -325,7 +324,6 @@ static void echo_completion(struct smbcli_request *req)
            NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET)) {
                talloc_free(state->tree);
                state->tree = NULL;
-               num_connected--;
                DEBUG(0,("lost connection\n"));
                test_failed++;
        }
@@ -429,7 +427,6 @@ bool torture_test_offline(struct torture_context *torture)
                state[i].client = i;
        }
 
-       num_connected = i;
 
        if (!torture_setup_dir(cli, BASEDIR)) {
                goto failed;