Fix almost all GCC warnings

This commit is contained in:
Nekotekina 2021-02-17 22:58:10 +03:00
parent 6786734d95
commit 038148bf06
19 changed files with 30 additions and 38 deletions

View file

@ -550,7 +550,7 @@ void logs::file_writer::log(const char* text, usz size)
// TODO: write bigger fragment directly in blocking manner
while (size && size <= 0xffffff)
{
u64 bufv;
u64 bufv = 0;
const auto pos = m_buf.atomic_op([&](u64& v) -> uchar*
{