summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Sec
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-06 06:31:12 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-06 06:31:12 +0000
commitcb0a42901a0931869ebcede637acec858be70cb7 (patch)
treee3d33086be0c025761e52d150fd28b7851252c86 /OvmfPkg/Sec
parentf76edcfd29669e594fb2899ba41d06e33228aeba (diff)
downloadedk2-cb0a42901a0931869ebcede637acec858be70cb7.tar.gz
edk2-cb0a42901a0931869ebcede637acec858be70cb7.tar.bz2
edk2-cb0a42901a0931869ebcede637acec858be70cb7.zip
OVMF SEC: Fix VS2005 compiler warnings
* 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
Diffstat (limited to 'OvmfPkg/Sec')
-rw-r--r--OvmfPkg/Sec/FindPeiCore.c2
-rw-r--r--OvmfPkg/Sec/SecMain.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/OvmfPkg/Sec/FindPeiCore.c b/OvmfPkg/Sec/FindPeiCore.c
index 01cd70f5ba..f74872aa16 100644
--- a/OvmfPkg/Sec/FindPeiCore.c
+++ b/OvmfPkg/Sec/FindPeiCore.c
@@ -217,8 +217,6 @@ FindFfsFileAndSection (
return Status;
}
}
-
- return EFI_NOT_FOUND;
}
diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c
index 58da92b086..d6c6f42722 100644
--- a/OvmfPkg/Sec/SecMain.c
+++ b/OvmfPkg/Sec/SecMain.c
@@ -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,