From: Howard Chu Date: Thu, 25 Oct 2012 13:55:46 +0000 (-0700) Subject: Better fix for MDB_DEBUG tweak -- from hbf X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~139^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0108327c274a4b260b5b355d2a7c3ffc3a85f4c1;p=openldap Better fix for MDB_DEBUG tweak -- from hbf --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 091e8ec569..e1a8689efc 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -297,6 +297,7 @@ static txnid_t mdb_debug_start; fprintf(stderr, "%s:%d " fmt "\n", __func__, __LINE__, __VA_ARGS__))) #else # define DPRINTF(fmt, ...) ((void) 0) +# define MDB_DEBUG_SKIP #endif /** Print a debug string. * The string is printed literally, with no format processing. @@ -3683,7 +3684,7 @@ static void mdb_cursor_pop(MDB_cursor *mc) { if (mc->mc_snum) { -#if MDB_DEBUG +#ifndef MDB_DEBUG_SKIP MDB_page *top = mc->mc_pg[mc->mc_top]; #endif mc->mc_snum--;