mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +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;
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user