diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-07-31 00:40:22 -0700 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-08-01 08:10:16 +0200 |
commit | 44e992429f2b6028a1b18b3898392d850afb6d14 (patch) | |
tree | b0425afcf94089740c4ecb548d8a9bc7a30f5e11 /Kernel/Mutex.cpp | |
parent | 14c674183b1f84a563631186063b37424ab038ca (diff) | |
download | serenity-44e992429f2b6028a1b18b3898392d850afb6d14.zip |
Kernel: Only include AK/SourceLocation.h if LOCK_DEBUG is enabled
Don't pay the header inclusion cost if we aren't compiling with the
LOCK_DEBUG option enabled.
Diffstat (limited to 'Kernel/Mutex.cpp')
-rw-r--r-- | Kernel/Mutex.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Mutex.cpp b/Kernel/Mutex.cpp index 85aed7ea0b..6a84d826df 100644 --- a/Kernel/Mutex.cpp +++ b/Kernel/Mutex.cpp @@ -4,7 +4,9 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/SourceLocation.h> +#ifdef LOCK_DEBUG +# include <AK/SourceLocation.h> +#endif #include <Kernel/Debug.h> #include <Kernel/KSyms.h> #include <Kernel/Mutex.h> |