From: Gary Lockyer Date: Tue, 19 May 2026 22:11:13 +0000 (+1200) Subject: lib:talloc:testsuite remove unread global test_abort_stop X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ed2aaa44d1f86fa250d988fc59a36338760caf00;p=thirdparty%2Fsamba.git lib:talloc:testsuite remove unread global test_abort_stop 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/lib/talloc/testsuite.c b/lib/talloc/testsuite.c index f9b98cf9cff..f22264d4a76 100644 --- a/lib/talloc/testsuite.c +++ b/lib/talloc/testsuite.c @@ -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); }