mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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
|
@ -319,7 +319,7 @@ ErrorOr<void> VirtualFileSystem::mknod(StringView path, mode_t mode, dev_t dev,
|
|||
|
||||
auto basename = KLexicalPath::basename(path);
|
||||
dbgln_if(VFS_DEBUG, "VirtualFileSystem::mknod: '{}' mode={} dev={} in {}", basename, mode, dev, parent_inode.identifier());
|
||||
TRY(parent_inode.create_child(basename, mode, dev, current_process.euid(), current_process.egid()));
|
||||
(void)TRY(parent_inode.create_child(basename, mode, dev, current_process.euid(), current_process.egid()));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -385,7 +385,7 @@ ErrorOr<void> VirtualFileSystem::mkdir(StringView path, mode_t mode, Custody& ba
|
|||
|
||||
auto basename = KLexicalPath::basename(path);
|
||||
dbgln_if(VFS_DEBUG, "VirtualFileSystem::mkdir: '{}' in {}", basename, parent_inode.identifier());
|
||||
TRY(parent_inode.create_child(basename, S_IFDIR | mode, 0, current_process.euid(), current_process.egid()));
|
||||
(void)TRY(parent_inode.create_child(basename, S_IFDIR | mode, 0, current_process.euid(), current_process.egid()));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue