From: Noel Power Date: Mon, 27 May 2019 15:47:54 +0000 (+0000) Subject: lib/tdb/common: clang: Fix 'Value stored to 'last_ptr' is never read' X-Git-Tag: ldb-2.0.5~407 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49e2d36918673e7922e4c983809ad1481db63f96;p=thirdparty%2Fsamba.git lib/tdb/common: clang: Fix 'Value stored to 'last_ptr' is never read' Fixes lib/tdb/common/freelistcheck.c:96:3: warning: Value stored to 'last_ptr' is never read <--[clang] last_ptr = rec_ptr; ^ ~~~~~~~ Signed-off-by: Noel Power Reviewed-by: Gary Lockyer gary@catalyst.net.nz Autobuild-User(master): Noel Power Autobuild-Date(master): Tue Jun 11 13:31:01 UTC 2019 on sn-devel-184 --- diff --git a/lib/tdb/common/freelistcheck.c b/lib/tdb/common/freelistcheck.c index c6bfeaa41bf..2f1e6eb67ca 100644 --- a/lib/tdb/common/freelistcheck.c +++ b/lib/tdb/common/freelistcheck.c @@ -93,7 +93,6 @@ _PUBLIC_ int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries) } /* move to the next record */ - last_ptr = rec_ptr; rec_ptr = rec.next; *pnum_entries += 1; }