From 0979a93a789b6f9d96cd1586e5121e6a2c60b29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Thu, 12 Jan 2023 13:40:11 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=87=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=B1=20=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BA=D0=B5=20MinGW=20MSYS2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mdbx_chk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mdbx_chk.c b/src/mdbx_chk.c index 19d50f8c..008de33c 100644 --- a/src/mdbx_chk.c +++ b/src/mdbx_chk.c @@ -153,6 +153,10 @@ static const char *sdb_name(const MDBX_val *val) { return ""; if (len > 65536) { static char buf[64]; + /* NOTE: There is MSYS2 MinGW bug if you here got + * the "unknown conversion type character ā€˜zā€™ in format [-Werror=format=]" + * https://stackoverflow.com/questions/74504432/whats-the-proper-way-to-tell-mingw-based-gcc-to-use-ansi-stdio-output-on-windo + */ snprintf(buf, sizeof(buf), "", len); return buf; }