mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
Kernel: Decorate KResult with [[nodiscard]]
This commit is contained in:
parent
946c96dd56
commit
f3cbb79f80
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ enum KSuccessTag {
|
|||
KSuccess
|
||||
};
|
||||
|
||||
class KResult {
|
||||
class [[nodiscard]] KResult {
|
||||
public:
|
||||
ALWAYS_INLINE explicit KResult(int negative_e)
|
||||
: m_error(negative_e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue