mdbx-testing: подавление параноидальных предупреждений MSVC в extra-тестах.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2024-09-14 20:29:16 +03:00
parent 14a55ee244
commit 202cdbc4be
2 changed files with 14 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ static buffer random(size_t length) {
buffer result(length);
#if defined(__cpp_lib_span) && __cpp_lib_span >= 202002L
for (auto &i : result.bytes())
i = prng();
i = mdbx::byte(prng());
#else
for (auto p = result.byte_ptr(); p < result.end_byte_ptr(); ++p)
*p = mdbx::byte(prng());