]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:torture:torture remove unread global got_alarm
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 19 May 2026 22:16:14 +0000 (10:16 +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>
source3/torture/torture.c

index 60176f7116bfb21158459b78c6837f0ac21fed00..c6d4c23ef1845cf26a00b7de3aa0a0445798bb9c 100644 (file)
@@ -2825,12 +2825,10 @@ fail:
  * lock is released and then acquire it. JRA.
  */
 
-static bool got_alarm;
 static struct cli_state *alarm_cli;
 
 static void alarm_handler(int dummy)
 {
-        got_alarm = True;
 }
 
 static void alarm_handler_parent(int dummy)