]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:talloc:testsuite remove unread global test_abort_stop
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 19 May 2026 22:11:13 +0000 (10:11 +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>
lib/talloc/testsuite.c

index f9b98cf9cffe9c2eee601a873cd6fea045e8586a..f22264d4a760b6f3c9d8e2eba688bf281b73be94 100644 (file)
@@ -115,7 +115,6 @@ static double private_timeval_elapsed(struct timeval *tv)
        } \
 } while (0)
 
-static unsigned int test_abort_count;
 
 #if 0
 static void test_abort_fn(const char *reason)
@@ -133,7 +132,6 @@ static void test_abort_start(void)
 
 static void test_abort_stop(void)
 {
-       test_abort_count = 0;
        talloc_set_abort_fn(NULL);
 }