mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-22 18:22: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
Notes:
sideshowbarker
2024-07-17 23:08:30 +09:00
Author: https://github.com/AtkinsSJ
Commit: c6a97ea843
Pull-request: https://github.com/SerenityOS/serenity/pull/11151
10 changed files with 14 additions and 12 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue