summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-05-27 15:47:54 +0000
committerNoel Power <npower@samba.org>2019-06-11 13:31:01 +0000
commit49e2d36918673e7922e4c983809ad1481db63f96 (patch)
tree68800e025a83dc15b2b2aff937c69439145ccc4e /lib/tdb
parent0152925879d68524e69ed5f02b323fe1bd7f706a (diff)
downloadsamba-49e2d36918673e7922e4c983809ad1481db63f96.tar.gz
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 <noel.power@suse.com> Reviewed-by: Gary Lockyer gary@catalyst.net.nz Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Tue Jun 11 13:31:01 UTC 2019 on sn-devel-184
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/common/freelistcheck.c1
1 files changed, 0 insertions, 1 deletions
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;
}