summaryrefslogtreecommitdiff
path: root/Kernel/KResult.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/KResult.h')
-rw-r--r--Kernel/KResult.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/KResult.h b/Kernel/KResult.h
index 35f9a28ea2..3d821c4260 100644
--- a/Kernel/KResult.h
+++ b/Kernel/KResult.h
@@ -61,7 +61,7 @@ private:
};
template<typename T>
-class alignas(T) KResultOr {
+class alignas(T) [[nodiscard]] KResultOr {
public:
KResultOr(KResult error)
: m_error(error)