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
Notes: sideshowbarker 2024-07-18 22:18:21 +09:00

View file

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