mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:05:07 +00:00
Kernel: Mark kernel smart-pointer classes as [[nodiscard]]
And cast the unused return values to void.
This commit is contained in:
parent
5013a6480d
commit
c6a97ea843
10 changed files with 14 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue