diff options
author | Yao, Jiewen <Jiewen.yao@intel.com> | 2015-06-05 13:19:45 +0000 |
---|---|---|
committer | jyao1 <jyao1@Edk2> | 2015-06-05 13:19:45 +0000 |
commit | eb01c45a1f153ede2f676040b0fefdc90ef09c69 (patch) | |
tree | b5b5324faf7772005c17212469dfe5375e9c48cb /MdeModulePkg/Core/Dxe | |
parent | 03d486b2a019a7acb165e57ffd02982e2002820d (diff) | |
download | edk2-platforms-eb01c45a1f153ede2f676040b0fefdc90ef09c69.tar.xz |
Fix GCC build error.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17565 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 6 |
1 files changed, 0 insertions, 6 deletions
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;
}
|