summaryrefslogtreecommitdiff
path: root/Kernel/SpinLock.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/SpinLock.h')
-rw-r--r--Kernel/SpinLock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/SpinLock.h b/Kernel/SpinLock.h
index c5729d9e08..a8cd389477 100644
--- a/Kernel/SpinLock.h
+++ b/Kernel/SpinLock.h
@@ -126,7 +126,7 @@ private:
};
template<typename LockType>
-class NO_DISCARD ScopedSpinLock {
+class [[nodiscard]] ScopedSpinLock {
AK_MAKE_NONCOPYABLE(ScopedSpinLock);