Fix GCC build error.
authorYao, Jiewen <Jiewen.yao@intel.com>
Fri, 5 Jun 2015 13:19:45 +0000 (13:19 +0000)
committerjyao1 <jyao1@Edk2>
Fri, 5 Jun 2015 13:19:45 +0000 (13:19 +0000)
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

MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c

index 5e409eb..897f970 100644 (file)
@@ -1107,10 +1107,8 @@ InsertImageRecord (
   EFI_IMAGE_DOS_HEADER                 *DosHdr;\r
   UINT32                               PeCoffHeaderOffset;\r
   UINT32                               SectionAlignment;\r
-  UINT16                               ImageType;\r
   EFI_IMAGE_SECTION_HEADER             *Section;\r
   EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION  Hdr;\r
-  UINT16                               Magic;\r
   UINT8                                *Name;\r
   UINTN                                Index;\r
   IMAGE_PROPERTIES_RECORD              *ImageRecord;\r
@@ -1168,15 +1166,11 @@ InsertImageRecord (
     //       Magic value in the OptionalHeader is EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC\r
     //       then override the magic value to EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC\r
     //\r
-    Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC;\r
-    ImageType         = Hdr.Pe32->OptionalHeader.Subsystem;\r
     SectionAlignment  = Hdr.Pe32->OptionalHeader.SectionAlignment;\r
   } else {\r
     //\r
     // Get the magic value from the PE/COFF Optional Header\r
     //\r
-    Magic = Hdr.Pe32->OptionalHeader.Magic;\r
-    ImageType         = Hdr.Pe32Plus->OptionalHeader.Subsystem;\r
     SectionAlignment  = Hdr.Pe32Plus->OptionalHeader.SectionAlignment;\r
   }\r
 \r