mdbx: backport - Silence warning for initializer "mdb_copy my = {0}".

1st struct member was not a scalar.

Change-Id: If52afc241f30b6af77a608a41178cbe929ceb288
LY: Already fixed in libmdbx, but to be closer to LMDB.
This commit is contained in:
Hallvard Furuseth 2016-09-03 09:41:30 +02:00 committed by Leo Yuriev
parent 43d87b4d97
commit f3b99004d1

4
mdb.c
View File

@ -9061,12 +9061,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;