diff --git a/test/utils.cc b/test/utils.cc index ee9051eb..33420cc0 100644 --- a/test/utils.cc +++ b/test/utils.cc @@ -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);