From ef2092eac9f35b77eae250801c96dfa515c6d4b2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 25 Oct 2012 05:28:55 -0700 Subject: [PATCH] MDB_DEBUG tweak for old compilers --- libraries/libmdb/mdb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 091e8ec569..fddcc9e12f 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -3683,15 +3683,16 @@ static void mdb_cursor_pop(MDB_cursor *mc) { if (mc->mc_snum) { -#if MDB_DEBUG - MDB_page *top = mc->mc_pg[mc->mc_top]; -#endif mc->mc_snum--; if (mc->mc_snum) mc->mc_top--; - +#if MDB_DEBUG + { + MDB_page *top = mc->mc_pg[mc->mc_top]; DPRINTF("popped page %zu off db %u cursor %p", top->mp_pgno, mc->mc_dbi, (void *) mc); + } +#endif } } -- 2.39.5