From: Yao, Jiewen Date: Fri, 5 Jun 2015 13:19:45 +0000 (+0000) Subject: Fix GCC build error. X-Git-Tag: edk2-stable201903~9695 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=eb01c45a1f153ede2f676040b0fefdc90ef09c69 Fix GCC build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17565 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c b/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c index 5e409eba6f..897f9703a8 100644 --- a/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c +++ b/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c @@ -1107,10 +1107,8 @@ InsertImageRecord ( EFI_IMAGE_DOS_HEADER *DosHdr; UINT32 PeCoffHeaderOffset; UINT32 SectionAlignment; - UINT16 ImageType; EFI_IMAGE_SECTION_HEADER *Section; EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr; - UINT16 Magic; UINT8 *Name; UINTN Index; IMAGE_PROPERTIES_RECORD *ImageRecord; @@ -1168,15 +1166,11 @@ InsertImageRecord ( // Magic value in the OptionalHeader is EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC // then override the magic value to EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC // - Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; - ImageType = Hdr.Pe32->OptionalHeader.Subsystem; SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; } else { // // Get the magic value from the PE/COFF Optional Header // - Magic = Hdr.Pe32->OptionalHeader.Magic; - ImageType = Hdr.Pe32Plus->OptionalHeader.Subsystem; SectionAlignment = Hdr.Pe32Plus->OptionalHeader.SectionAlignment; }