1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 12:07:35 +00:00

Kernel: Ignore unobserved BlockResult from Thread::Sleep

Suppress these in preparation for making BlockResult [[nodiscard]].
This commit is contained in:
Brian Gianforcaro 2021-02-14 15:08:09 -08:00 committed by Andreas Kling
parent ddd79fe2cf
commit a8a834782c
2 changed files with 2 additions and 2 deletions

View file

@ -450,7 +450,7 @@ void UHCIController::spawn_port_proc()
} }
} }
} }
Thread::current()->sleep(sleep_time); (void)Thread::current()->sleep(sleep_time);
} }
}); });
} }

View file

@ -38,7 +38,7 @@ void SyncTask::spawn()
dbgln("SyncTask is running"); dbgln("SyncTask is running");
for (;;) { for (;;) {
VFS::the().sync(); VFS::the().sync();
Thread::current()->sleep({ 1, 0 }); (void)Thread::current()->sleep({ 1, 0 });
} }
}); });
} }