1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

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.
This commit is contained in:
Linus Groh 2021-03-03 23:03:38 +01:00 committed by Andreas Kling
parent 95b49691c5
commit a5d6962148
2 changed files with 1 additions and 6 deletions

View file

@ -126,7 +126,7 @@ private:
};
template<typename LockType>
class NO_DISCARD ScopedSpinLock {
class [[nodiscard]] ScopedSpinLock {
AK_MAKE_NONCOPYABLE(ScopedSpinLock);