1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:34:59 +00:00

Kernel: Mark kernel smart-pointer classes as [[nodiscard]]

And cast the unused return values to void.
This commit is contained in:
Sam Atkins 2021-12-03 10:23:09 +00:00 committed by Andreas Kling
parent 5013a6480d
commit c6a97ea843
10 changed files with 14 additions and 12 deletions

View file

@ -656,7 +656,7 @@ void Plan9FS::ensure_thread()
auto process_name = KString::try_create("Plan9FS");
if (process_name.is_error())
TODO();
Process::create_kernel_process(m_thread, process_name.release_value(), [&]() {
(void)Process::create_kernel_process(m_thread, process_name.release_value(), [&]() {
thread_main();
m_thread_running.store(false, AK::MemoryOrder::memory_order_release);
});