Address compiler warnings #10
This commit is contained in:
@@ -606,7 +606,7 @@ auto remote_server::fuse_read(const char *path, char *buffer,
|
||||
if (res == 0) {
|
||||
b.resize(read_size);
|
||||
res = pread64(static_cast<native_handle>(handle), &b[0], read_size,
|
||||
read_offset);
|
||||
static_cast<off_t>(read_offset));
|
||||
}
|
||||
|
||||
auto ret = ((res < 0) ? -errno : res);
|
||||
@@ -895,7 +895,7 @@ auto remote_server::fuse_write(const char *path, const char *buffer,
|
||||
auto res = has_open_info(static_cast<native_handle>(handle), EBADF);
|
||||
if (res == 0) {
|
||||
res = pwrite64(static_cast<native_handle>(handle), buffer, write_size,
|
||||
write_offset);
|
||||
static_cast<off_t>(write_offset));
|
||||
}
|
||||
|
||||
auto ret = ((res < 0) ? -errno : res);
|
||||
|
@@ -491,7 +491,7 @@ void file_manager::open_file::update_background_reader(std::size_t read_chunk) {
|
||||
|
||||
if (not reader_thread_ && not stop_requested_) {
|
||||
reader_thread_ = std::make_unique<std::thread>([this]() {
|
||||
auto next_chunk = 0u;
|
||||
std::size_t next_chunk{};
|
||||
while (not stop_requested_) {
|
||||
unique_recur_mutex_lock file_lock(file_mtx_);
|
||||
if ((fsi_.size == 0u) || read_state_.all()) {
|
||||
|
Reference in New Issue
Block a user