mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 21:20:49 +00:00
Fix warnings
This commit is contained in:
parent
71ed9ad060
commit
93ebb40130
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user