From f88d626ff1927a17cc8926e682dbc46d4d2cf85a Mon Sep 17 00:00:00 2001 From: Hallvard B Furuseth Date: Wed, 29 Jun 2011 21:12:08 +0200 Subject: [PATCH] Drop unused vars --- libraries/libmdb/mdb.c | 5 ----- libraries/libmdb/mdb_stat.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index e911b9cd38..eadb7bc9b8 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -401,7 +401,6 @@ mdb_newpage(MDB_txn *txn, MDB_page *parent, unsigned int parent_idx, int num) static int mdb_touch(MDB_txn *txn, MDB_pageparent *pp) { - int rc; MDB_page *mp = pp->mp_page; pgno_t pgno; assert(txn != NULL); @@ -659,7 +658,6 @@ done: static int mdbenv_write_header(MDB_env *env) { - struct stat sb; MDB_head *h; MDB_page *p; ssize_t rc; @@ -1285,9 +1283,7 @@ mdb_read_data(MDB_db *db, MDB_page *mp, MDB_node *leaf, MDB_val *data) { MDB_page *omp; /* overflow mpage */ - size_t psz; size_t max; - size_t sz = 0; pgno_t pgno; bzero(data, sizeof(*data)); @@ -2126,7 +2122,6 @@ mdb_split(MDB_db *bt, MDB_page **mpp, unsigned int *newindxp, pgno_t pgno = 0; unsigned int i, j, split_indx; MDB_node *node; - MDB_page *pright, *p; MDB_val sepkey, rkey, rdata; MDB_page *copy; MDB_dpage *mdp, *rdp, *pdp; diff --git a/libraries/libmdb/mdb_stat.c b/libraries/libmdb/mdb_stat.c index 75d75c68ea..80ecc83e98 100644 --- a/libraries/libmdb/mdb_stat.c +++ b/libraries/libmdb/mdb_stat.c @@ -5,7 +5,7 @@ int main(int argc,char * argv[]) { - int i = 0, rc; + int rc; MDB_env *env; MDB_db *db; MDB_stat *mst; -- 2.39.5