1
Fork 0
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:
Brian Gianforcaro 2021-02-14 15:06:10 -08:00 committed by Andreas Kling
parent a8a834782c
commit f12754ee10

View file

@ -155,7 +155,7 @@ public:
Blocked
};
class BlockResult {
class [[nodiscard]] BlockResult {
public:
enum Type {
WokeNormally,