mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +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:
parent
95b49691c5
commit
a5d6962148
Notes:
sideshowbarker
2024-07-18 21:44:32 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/a5d69621481 Pull-request: https://github.com/SerenityOS/serenity/pull/5624
2 changed files with 1 additions and 6 deletions
|
@ -60,11 +60,6 @@
|
|||
#endif
|
||||
#define FLATTEN [[gnu::flatten]]
|
||||
|
||||
#ifdef NO_DISCARD
|
||||
# undef NO_DISCARD
|
||||
#endif
|
||||
#define NO_DISCARD [[nodiscard]]
|
||||
|
||||
#ifndef __serenity__
|
||||
# define PAGE_SIZE sysconf(_SC_PAGESIZE)
|
||||
#endif
|
||||
|
|
|
@ -126,7 +126,7 @@ private:
|
|||
};
|
||||
|
||||
template<typename LockType>
|
||||
class NO_DISCARD ScopedSpinLock {
|
||||
class [[nodiscard]] ScopedSpinLock {
|
||||
|
||||
AK_MAKE_NONCOPYABLE(ScopedSpinLock);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue