diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-12-03 10:23:09 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-05 15:31:03 +0100 |
commit | c6a97ea84348a51fedd18d3a77de701a21d23e66 (patch) | |
tree | 44dd8fe5ea1b00e4cde8eb6e9050835eefab2f4f /Kernel/WorkQueue.cpp | |
parent | 5013a6480d989b48c9a910cfe3c4ad19f0508597 (diff) | |
download | serenity-c6a97ea84348a51fedd18d3a77de701a21d23e66.zip |
Kernel: Mark kernel smart-pointer classes as [[nodiscard]]
And cast the unused return values to void.
Diffstat (limited to 'Kernel/WorkQueue.cpp')
-rw-r--r-- | Kernel/WorkQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/WorkQueue.cpp b/Kernel/WorkQueue.cpp index cee1bd288e..2c820a9e78 100644 --- a/Kernel/WorkQueue.cpp +++ b/Kernel/WorkQueue.cpp @@ -25,7 +25,7 @@ UNMAP_AFTER_INIT WorkQueue::WorkQueue(StringView name) auto name_kstring = KString::try_create(name); if (name_kstring.is_error()) TODO(); - Process::create_kernel_process(thread, name_kstring.release_value(), [this] { + (void)Process::create_kernel_process(thread, name_kstring.release_value(), [this] { for (;;) { WorkItem* item; bool have_more; |