From: Gary Lockyer Date: Tue, 19 May 2026 21:58:56 +0000 (+1200) Subject: s4:torture:raw:offline remove unread global num_connected X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14dad447cf1058fda3280260e195a8a48da1c10a;p=thirdparty%2Fsamba.git s4:torture:raw:offline remove unread global num_connected 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 Reviewed-by: Douglas Bagnall Reviewed-by: Anoop C S --- diff --git a/source4/torture/raw/offline.c b/source4/torture/raw/offline.c index 262003f69a3..3ddb8ebd609 100644 --- a/source4/torture/raw/offline.c +++ b/source4/torture/raw/offline.c @@ -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;