]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OVMF SEC: Fix VS2005 compiler warnings
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 6 Jan 2010 06:31:12 +0000 (06:31 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 6 Jan 2010 06:31:12 +0000 (06:31 +0000)
* FindPeiCore.c => FindFfsFileAndSection: remove unreachable code
* SecMain.c => SecCoreStartupWithStack: confirm 64-bit to 32-bit
  conversion with IA32 builds.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9679 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/Sec/FindPeiCore.c
OvmfPkg/Sec/SecMain.c

index 01cd70f5baf0dab6d3aa2b0c6ba5f616b36e8e62..f74872aa162084bbc0b392a338b2e6460a3b1a86 100644 (file)
@@ -217,8 +217,6 @@ FindFfsFileAndSection (
       return Status;
     }
   }
-
-  return EFI_NOT_FOUND;
 }
 
 
index 58da92b0866acadcf5c6e7c8c6d481838c07334c..d6c6f427227288c5f464b95d9dc14c8a36e4710d 100644 (file)
@@ -127,7 +127,7 @@ SecCoreStartupWithStack (
   FindPeiCoreEntryPoint (&BootFv, &PeiCoreEntryPoint);
 
   SecCoreData->BootFirmwareVolumeBase = BootFv;
-  SecCoreData->BootFirmwareVolumeSize = BootFv->FvLength;
+  SecCoreData->BootFirmwareVolumeSize = (UINTN) BootFv->FvLength;
 
   if (PeiCoreEntryPoint != NULL) {
     DEBUG ((EFI_D_INFO,