mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-27 15:04:31 +00:00
build(kernel): ✅ fix compiling in release mode
This commit is contained in:
parent
d7abd36717
commit
6592db3f4e
@ -73,6 +73,7 @@ VOID InitializeMemoryEntries(EFI_MEMORY_DESCRIPTOR *MemoryMap, UINTN NumberOfEnt
|
|||||||
for (UINTN i = 0; i < NumberOfEntries; i++)
|
for (UINTN i = 0; i < NumberOfEntries; i++)
|
||||||
{
|
{
|
||||||
EFI_MEMORY_DESCRIPTOR *desc = (EFI_MEMORY_DESCRIPTOR *)((UINT8 *)MemoryMap + i * DescriptorSize);
|
EFI_MEMORY_DESCRIPTOR *desc = (EFI_MEMORY_DESCRIPTOR *)((UINT8 *)MemoryMap + i * DescriptorSize);
|
||||||
|
UNUSED(desc);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
const char *EFI_MEMORY_TYPE_STRINGS[] = {
|
const char *EFI_MEMORY_TYPE_STRINGS[] = {
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
|
||||||
/* This part is from "4.6.1.1 Industry Standard Configuration Tables" */
|
/* This part is from "4.6.1.1 Industry Standard Configuration Tables" */
|
||||||
|
|
||||||
#define EFI_ACPI_20_TABLE_GUID \
|
#define EFI_ACPI_20_TABLE_GUID \
|
||||||
@ -633,3 +636,5 @@ static EFI_GUID gWindowsUxCapsuleGuid = {0x3b8c8162, 0x188c, 0x46a4, {0xae, 0xc9
|
|||||||
#define UiProtocol gEFiUiInterfaceProtocolGuid
|
#define UiProtocol gEFiUiInterfaceProtocolGuid
|
||||||
#define UnicodeCollationProtocol gEfiUnicodeCollationProtocolGuid
|
#define UnicodeCollationProtocol gEfiUnicodeCollationProtocolGuid
|
||||||
#define Vt100Protocol gEfiVT100Guid
|
#define Vt100Protocol gEfiVT100Guid
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user