mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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
Notes:
sideshowbarker
2024-07-18 22:18:21 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/f12754ee10a Pull-request: https://github.com/SerenityOS/serenity/pull/5352
|
@ -155,7 +155,7 @@ public:
|
|||
Blocked
|
||||
};
|
||||
|
||||
class BlockResult {
|
||||
class [[nodiscard]] BlockResult {
|
||||
public:
|
||||
enum Type {
|
||||
WokeNormally,
|
||||
|
|
Loading…
Reference in a new issue