1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

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.
This commit is contained in:
Timon Kruiper 2022-05-02 17:40:10 +02:00 committed by Linus Groh
parent b8de830683
commit b3346aa08d

View file

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