From: Hallvard Furuseth Date: Sat, 3 Sep 2016 07:41:30 +0000 (+0200) Subject: Silence warning for initializer "mdb_copy my = {0}" X-Git-Tag: LMDB_0.9.19~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b922a5a086bc5f615e69aa82de5dff46b6ea8895;p=openldap Silence warning for initializer "mdb_copy my = {0}" 1st struct member was not a scalar. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 28ccb73e66..3f78d3c483 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8824,12 +8824,12 @@ mdb_put(MDB_txn *txn, MDB_dbi dbi, /** State needed for a double-buffering compacting copy. */ typedef struct mdb_copy { + MDB_env *mc_env; + MDB_txn *mc_txn; pthread_mutex_t mc_mutex; pthread_cond_t mc_cond; /**< Condition variable for #mc_new */ char *mc_wbuf[2]; char *mc_over[2]; - MDB_env *mc_env; - MDB_txn *mc_txn; int mc_wlen[2]; int mc_olen[2]; pgno_t mc_next_pgno;