From b3346aa08df09164b37aebf66262aefc75b3e2ad Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Mon, 2 May 2022 17:40:10 +0200 Subject: [PATCH] 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. --- Kernel/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)