mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Kernel: Fix deprecated array comparison
The Clang error message reads like this (`-Wdeprecated-array-compare`): > error: comparison between two arrays is deprecated; to compare > array addresses, use unary '+' to decay operands to pointers.
This commit is contained in:
parent
9265f24816
commit
347c3361ee
Notes:
sideshowbarker
2024-07-18 07:16:48 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/347c3361ee7 Pull-request: https://github.com/SerenityOS/serenity/pull/8718 Issue: https://github.com/SerenityOS/serenity/issues/363 Reviewed-by: https://github.com/gunnarbeutner ✅ Reviewed-by: https://github.com/nico
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
|
|||
Memory::MemoryManager::initialize(0);
|
||||
|
||||
// Ensure that the safemem sections are not empty. This could happen if the linker accidentally discards the sections.
|
||||
VERIFY(start_of_safemem_text != end_of_safemem_text);
|
||||
VERIFY(start_of_safemem_atomic_text != end_of_safemem_atomic_text);
|
||||
VERIFY(+start_of_safemem_text != +end_of_safemem_text);
|
||||
VERIFY(+start_of_safemem_atomic_text != +end_of_safemem_atomic_text);
|
||||
|
||||
// Invoke all static global constructors in the kernel.
|
||||
// Note that we want to do this as early as possible.
|
||||
|
|
Loading…
Reference in a new issue