From: Hallvard Furuseth Date: Mon, 1 Dec 2014 07:59:29 +0000 (+0100) Subject: mdb_strerror: Silence warning @ Windows X-Git-Tag: LMDB_0.9.15~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8704eff5917ed1f8025571bb85219d6e0b7b70fb;p=openldap mdb_strerror: Silence warning @ Windows --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e0c854c60a..efb5689ca1 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1316,7 +1316,7 @@ mdb_strerror(int err) buf[0] = 0; FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, err, 0, ptr, sizeof(buf), pad); + NULL, err, 0, ptr, sizeof(buf), (va_list *)pad); return ptr; #else return strerror(err);