From: Hallvard Furuseth Date: Sat, 4 May 2013 10:41:28 +0000 (+0200) Subject: MDB warning cleanup. X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~68^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f355de0298d2dc4f080fdc4f275a881bfecb0716;p=openldap MDB warning cleanup. Unused function when MDB_DEBUG. Unused 'excl' param. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index b6e85a542c..ba93ade316 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1014,6 +1014,9 @@ static int mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, static int mdb_env_read_header(MDB_env *env, MDB_meta *meta); static int mdb_env_pick_meta(const MDB_env *env); static int mdb_env_write_meta(MDB_txn *txn); +#if !(defined(_WIN32) || defined(MDB_USE_POSIX_SEM)) /* Drop unused excl arg */ +# define mdb_env_close0(env, excl) mdb_env_close1(env) +#endif static void mdb_env_close0(MDB_env *env, int excl); static MDB_node *mdb_node_search(MDB_cursor *mc, MDB_val *key, int *exactp); @@ -1136,7 +1139,7 @@ mdb_dkey(MDB_val *key, char *buf) } /** Display all the keys in the page. */ -static void +void mdb_page_list(MDB_page *mp) { MDB_node *node;