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

index 6fcadcaa0f59444e2a28b8ae3f0b157ad72506d1..1f4c99a00ff759883991ceb752788cf986171559 100644 (file)
@@ -537,11 +537,9 @@ static int print_hexkey(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf, void
        return 0;
 }
 
-static int total_bytes;
 
 static int traverse_fn(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf, void *state)
 {
-       total_bytes += dbuf.dsize;
        return 0;
 }