Fix warnings

This commit is contained in:
Alexey Milovidov 2021-08-28 01:59:34 +03:00
parent 71ed9ad060
commit 93ebb40130
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ const char * toString(ReadMethod read_method)
FOR_EACH_READ_METHOD(CASE_READ_METHOD)
#undef CASE_READ_METHOD
}
__builtin_unreachable();
}
ReadMethod parseReadMethod(const std::string & name)

View File

@ -103,7 +103,7 @@ std::future<IAsynchronousReader::Result> ThreadPoolReader::submit(Request reques
SYS_preadv2, fd,
&io_vec, 1,
/// This is kind of weird calling convention for syscall.
static_cast<long>(request.offset), static_cast<long>(request.offset >> 32),
static_cast<int64_t>(request.offset), static_cast<int64_t>(request.offset >> 32),
/// This flag forces read from page cache or returning EAGAIN.
RWF_NOWAIT);
}