summaryrefslogtreecommitdiff
path: root/Kernel/SpinLock.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-03-03 23:03:38 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-03 23:08:42 +0100
commita5d696214811cfa67dbab32e4a440f64d6ab4c76 (patch)
treed1fcea03281743198955fd82987ae6fd7fb717b7 /Kernel/SpinLock.h
parent95b49691c50fb84e2692eedbd121fa109af94c28 (diff)
downloadserenity-a5d696214811cfa67dbab32e4a440f64d6ab4c76.zip
AK+Kernel: Remove NO_DISCARD macro hack
This was added as clang-format would mess up the formatting when using [[nodiscard]] on a class, which is no longer the case.
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);