ITS#7589 silence warnings

vmware
Howard Chu 11 years ago
parent 2211fb15db
commit 5a9ddfd289
  1. 9
      libraries/liblmdb/mdb.c

@ -7379,13 +7379,13 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
int rc = MDB_SUCCESS, new_root = 0, did_split = 0; int rc = MDB_SUCCESS, new_root = 0, did_split = 0;
indx_t newindx; indx_t newindx;
pgno_t pgno = 0; pgno_t pgno = 0;
unsigned int i, j, split_indx, nkeys, pmax; int i, j, split_indx, nkeys, pmax;
MDB_env *env = mc->mc_txn->mt_env; MDB_env *env = mc->mc_txn->mt_env;
MDB_node *node; MDB_node *node;
MDB_val sepkey, rkey, xdata, *rdata = &xdata; MDB_val sepkey, rkey, xdata, *rdata = &xdata;
MDB_page *copy; MDB_page *copy = NULL;
MDB_page *mp, *rp, *pp; MDB_page *mp, *rp, *pp;
unsigned int ptop; int ptop;
MDB_cursor mn; MDB_cursor mn;
DKBUF; DKBUF;
@ -7487,8 +7487,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
mc->mc_pg[mc->mc_top] = rp; mc->mc_pg[mc->mc_top] = rp;
} }
} else { } else {
unsigned int psize, nsize; int psize, nsize, k;
int k;
/* Maximum free space in an empty page */ /* Maximum free space in an empty page */
pmax = env->me_psize - PAGEHDRSZ; pmax = env->me_psize - PAGEHDRSZ;
if (IS_LEAF(mp)) if (IS_LEAF(mp))

Loading…
Cancel
Save