1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

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.
This commit is contained in:
Brian Gianforcaro 2021-07-31 00:40:22 -07:00 committed by Gunnar Beutner
parent 14c674183b
commit 44e992429f
2 changed files with 6 additions and 2 deletions

View file

@ -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>