Quel compiler warnings.

This commit is contained in:
Gregory Burd 2016-03-06 20:11:34 -05:00
parent 5af4f8e7a1
commit e0ea7f2504
3 changed files with 8 additions and 1 deletions

View file

@ -10671,6 +10671,7 @@ int mdb_set_relctx(MDB_txn *txn, MDB_dbi dbi, void *ctx)
int ESECT
mdb_env_get_maxkeysize(MDB_env *env)
{
env = env;
return ENV_MAXKEY(env);
}

View file

@ -102,7 +102,7 @@ static ERL_NIF_TERM ATOM_TXN_NOT_STARTED;
static ERL_NIF_TERM
__strerror_term(ErlNifEnv* env, int err)
{
ERL_NIF_TERM term;
ERL_NIF_TERM term = 0;
if (err < MDB_LAST_ERRCODE && err > MDB_KEYEXIST) {
switch (err) {

6
tools/update-mdb Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
for file in lmdb.h mdb.c midl.h midl.c; do
curl -O https://raw.githubusercontent.com/LMDB/lmdb/mdb.master/libraries/liblmdb/$file
done