build(kernel): fix compiling in release mode

This commit is contained in:
2025-05-13 15:11:32 +00:00
parent d7abd36717
commit 6592db3f4e
2 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,7 @@ VOID InitializeMemoryEntries(EFI_MEMORY_DESCRIPTOR *MemoryMap, UINTN NumberOfEnt
for (UINTN i = 0; i < NumberOfEntries; i++)
{
EFI_MEMORY_DESCRIPTOR *desc = (EFI_MEMORY_DESCRIPTOR *)((UINT8 *)MemoryMap + i * DescriptorSize);
UNUSED(desc);
#ifdef DEBUG
const char *EFI_MEMORY_TYPE_STRINGS[] = {