From 74ed1757a4fb9263e1a78adc7b60360531824e0a Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 5 Aug 2013 10:01:39 +0200 Subject: [PATCH] Silence warnings --- libraries/liblmdb/mdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index b37d113..4b97703 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2999,7 +2999,7 @@ mdb_env_init_meta(MDB_env *env, MDB_meta *meta) DO_PWRITE(rc, env->me_fd, p, psize * 2, len, 0); if (!rc) rc = ErrCode(); - else if (len == psize * 2) + else if ((unsigned) len == psize * 2) rc = MDB_SUCCESS; else rc = ENOSPC; @@ -3560,7 +3560,7 @@ mdb_hash_val(MDB_val *val, mdb_hash_t hval) * @param[in] str string to hash * @param[out] encbuf an array of 11 chars to hold the hash */ -const static char mdb_a85[]= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"; +static const char mdb_a85[]= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"; static void mdb_pack85(unsigned long l, char *out)