mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:28:11 +00:00
Kernel: Mark BlockResult as [[nodiscard]]
In the majority of cases we want to force callers to observe the result of a blocking operation as it's not grantee to succeed as they expect. Mark BlockResult as [[nodiscard]] to force any callers to observe the result of the blocking operation.
This commit is contained in:
parent
a8a834782c
commit
f12754ee10
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ public:
|
|||
Blocked
|
||||
};
|
||||
|
||||
class BlockResult {
|
||||
class [[nodiscard]] BlockResult {
|
||||
public:
|
||||
enum Type {
|
||||
WokeNormally,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue