mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-14 11:45:04 +00:00
Kernel: Mark kernel smart-pointer classes as [[nodiscard]]
And cast the unused return values to void.
This commit is contained in:
committed by
Andreas Kling
parent
5013a6480d
commit
c6a97ea843
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user