mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Fix build break from missing KResult [[nodiscard]] suppressions
Missed this somehow in previous change.
This commit is contained in:
parent
fa666f6897
commit
c4c6d9367d
Notes:
sideshowbarker
2024-07-19 04:17:01 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/c4c6d9367d9 Pull-request: https://github.com/SerenityOS/serenity/pull/3006
2 changed files with 6 additions and 3 deletions
|
@ -261,7 +261,8 @@ void BlockBasedFS::flush_specific_block_if_needed(unsigned index)
|
|||
if (entry.is_dirty && entry.block_index == index) {
|
||||
u32 base_offset = static_cast<u32>(entry.block_index) * static_cast<u32>(block_size());
|
||||
file_description().seek(base_offset, SEEK_SET);
|
||||
file_description().write(entry.data, block_size());
|
||||
// FIXME: Should this error path be surfaced somehow?
|
||||
(void)file_description().write(entry.data, block_size());
|
||||
entry.is_dirty = false;
|
||||
}
|
||||
});
|
||||
|
@ -278,7 +279,8 @@ void BlockBasedFS::flush_writes_impl()
|
|||
return;
|
||||
u32 base_offset = static_cast<u32>(entry.block_index) * static_cast<u32>(block_size());
|
||||
file_description().seek(base_offset, SEEK_SET);
|
||||
file_description().write(entry.data, block_size());
|
||||
// FIXME: Should this error path be surfaced somehow?
|
||||
(void)file_description().write(entry.data, block_size());
|
||||
++count;
|
||||
entry.is_dirty = false;
|
||||
});
|
||||
|
|
|
@ -639,7 +639,8 @@ void Process::finalize()
|
|||
if (!description_or_error.is_error()) {
|
||||
auto& description = description_or_error.value();
|
||||
auto json = m_perf_event_buffer->to_json(m_pid, m_executable ? m_executable->absolute_path() : "");
|
||||
description->write(json.data(), json.size());
|
||||
// FIXME: Should this error path be surfaced somehow?
|
||||
(void)description->write(json.data(), json.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue