mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 06:08:21 +08:00
mdbx-test: fix minor lcc 1.26 warning.
This commit is contained in:
parent
9b9fe22669
commit
cdfaad18a2
@ -35,7 +35,8 @@ std::string format(const char *fmt, ...) {
|
|||||||
std::string result;
|
std::string result;
|
||||||
result.reserve((size_t)needed + 1);
|
result.reserve((size_t)needed + 1);
|
||||||
result.resize((size_t)needed, '\0');
|
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);
|
assert(actual == needed);
|
||||||
(void)actual;
|
(void)actual;
|
||||||
va_end(ones);
|
va_end(ones);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user