diff options
author | Linus Groh <mail@linusgroh.de> | 2021-03-03 23:03:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-03 23:08:42 +0100 |
commit | a5d696214811cfa67dbab32e4a440f64d6ab4c76 (patch) | |
tree | d1fcea03281743198955fd82987ae6fd7fb717b7 /Kernel/SpinLock.h | |
parent | 95b49691c50fb84e2692eedbd121fa109af94c28 (diff) | |
download | serenity-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.h | 2 |
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); |