mdbx-test: fix minor lcc 1.26 warning.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-06-12 20:19:06 +03:00
parent 9b9fe22669
commit cdfaad18a2

View File

@ -35,7 +35,8 @@ std::string format(const char *fmt, ...) {
std::string result;
result.reserve((size_t)needed + 1);
result.resize((size_t)needed, '\0');
int actual = vsnprintf((char *)result.data(), result.capacity(), fmt, ones);
MDBX_MAYBE_UNUSED int actual =
vsnprintf((char *)result.data(), result.capacity(), fmt, ones);
assert(actual == needed);
(void)actual;
va_end(ones);