summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2022-05-02 17:40:10 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-03 00:59:35 +0200
commitb3346aa08df09164b37aebf66262aefc75b3e2ad (patch)
treede6420e4b082dc743962c7faa83a0cf40d972d55 /Kernel
parentb8de830683da6a42564dcc9df538b53870fac919 (diff)
downloadserenity-b3346aa08df09164b37aebf66262aefc75b3e2ad.zip
Kernel: Fix aarch64 build by adding -Wno-nonnull flag
The compiler figured out that the MemoryManager is not initialised, and thus MemoryManager::the() cannot return a valid reference. Once the necesarry code is in place, this compiler flag can be removed.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt
index 4b3ebf809e..d6961852c2 100644
--- a/Kernel/CMakeLists.txt
+++ b/Kernel/CMakeLists.txt
@@ -447,6 +447,9 @@ else()
# Otherwise linker errors e.g undefined reference to `__aarch64_cas8_acq_rel'
add_compile_options(-mno-outline-atomics -latomic)
+
+ # FIXME: Remove this once compiling MemoryManager.cpp doesn't give the nonnull error anymore.
+ add_compile_options(-Wno-nonnull)
endif()
add_compile_options(-fsigned-char)