Skip to content

Commit

Permalink
Kernel: Decorate KResult with [[nodiscard]]
Browse files Browse the repository at this point in the history
  • Loading branch information
bgianfo authored and awesomekling committed Aug 5, 2020
1 parent 946c96d commit f3cbb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/KResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum KSuccessTag {
KSuccess
};

class KResult {
class [[nodiscard]] KResult {
public:
ALWAYS_INLINE explicit KResult(int negative_e)
: m_error(negative_e)
Expand Down

0 comments on commit f3cbb79

Please sign in to comment.