summaryrefslogtreecommitdiff
path: root/Kernel/WorkQueue.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-03 10:23:09 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-05 15:31:03 +0100
commitc6a97ea84348a51fedd18d3a77de701a21d23e66 (patch)
tree44dd8fe5ea1b00e4cde8eb6e9050835eefab2f4f /Kernel/WorkQueue.cpp
parent5013a6480d989b48c9a910cfe3c4ad19f0508597 (diff)
downloadserenity-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.cpp2
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;