From: Gary Lockyer Date: Tue, 19 May 2026 21:19:09 +0000 (+1200) Subject: tdb:tools:tdbtool remove unread global total_bytes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6351d2d06edc28cfc067627ee1200ec65828402;p=thirdparty%2Fsamba.git tdb:tools:tdbtool remove unread global total_bytes 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 Reviewed-by: Douglas Bagnall Reviewed-by: Anoop C S --- diff --git a/lib/tdb/tools/tdbtool.c b/lib/tdb/tools/tdbtool.c index 6fcadcaa0f5..1f4c99a00ff 100644 --- a/lib/tdb/tools/tdbtool.c +++ b/lib/tdb/tools/tdbtool.c @@ -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; }