diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-07-22 23:02:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-08 10:55:36 +0200 |
commit | 347c3361ee74b49e72c2d5cbc1c248f16254bcdc (patch) | |
tree | 35f8f73eb572fddf18421fcc447ec966e5bcf677 /Kernel | |
parent | 9265f2481698e278412072a085bedd5705162dad (diff) | |
download | serenity-347c3361ee74b49e72c2d5cbc1c248f16254bcdc.zip |
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.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index cde935f45f..9895809d24 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -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. |