lib/tdb/common: clang: Fix 'Value stored to 'last_ptr' is never read'
authorNoel Power <noel.power@suse.com>
Mon, 27 May 2019 15:47:54 +0000 (15:47 +0000)
committerNoel Power <npower@samba.org>
Tue, 11 Jun 2019 13:31:01 +0000 (13:31 +0000)
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

lib/tdb/common/freelistcheck.c

index c6bfeaa41bf4af9e03267884c17f958f0c60d24d..2f1e6eb67cae785a88d83a7cc7aee0a9fa4b1858 100644 (file)
@@ -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;
        }