mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +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
@@ -15,7 +15,7 @@ namespace Kernel {
|
||||
UNMAP_AFTER_INIT void SyncTask::spawn()
|
||||
{
|
||||
RefPtr<Thread> syncd_thread;
|
||||
Process::create_kernel_process(syncd_thread, KString::must_create("SyncTask"), [] {
|
||||
(void)Process::create_kernel_process(syncd_thread, KString::must_create("SyncTask"), [] {
|
||||
dbgln("SyncTask is running");
|
||||
for (;;) {
|
||||
VirtualFileSystem::sync();
|
||||
|
||||
Reference in New Issue
Block a user