mdbx: добавлено примечание об ошибке MinGW MSYS2.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2023-01-12 13:40:11 +03:00
parent a98c73f4f6
commit 0979a93a78

View File

@ -153,6 +153,10 @@ static const char *sdb_name(const MDBX_val *val) {
return "<nullptr>";
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), "<too-long-%zu>", len);
return buf;
}