OvmfPkg: Remove variables that are set, but not used

GCC 4.6 generates a warning when a variable is set,
but never used.

Signed-off-by: jljusten

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12615 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2011-10-31 15:57:12 +00:00
parent 8567a8ca77
commit a473e4163b
3 changed files with 2 additions and 8 deletions

View File

@ -137,7 +137,6 @@ IterateVariablesInBuffer (
) )
{ {
RETURN_STATUS Status; RETURN_STATUS Status;
UINTN Count;
UINTN TotalSizeUsed; UINTN TotalSizeUsed;
UINTN SizeUsed; UINTN SizeUsed;
@ -160,7 +159,7 @@ IterateVariablesInBuffer (
Data = NULL; Data = NULL;
for ( for (
Status = EFI_SUCCESS, Count = 0, TotalSizeUsed = 0; Status = EFI_SUCCESS, TotalSizeUsed = 0;
!EFI_ERROR (Status) && (TotalSizeUsed < MaxSize); !EFI_ERROR (Status) && (TotalSizeUsed < MaxSize);
) { ) {
Status = UnpackVariableFromBuffer ( Status = UnpackVariableFromBuffer (

View File

@ -1,7 +1,7 @@
/** @file /** @file
Build FV related hobs for platform. Build FV related hobs for platform.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -33,8 +33,6 @@ PeiFvInitialization (
VOID VOID
) )
{ {
EFI_PHYSICAL_ADDRESS FdBase;
DEBUG ((EFI_D_ERROR, "Platform PEI Firmware Volume Initialization\n")); DEBUG ((EFI_D_ERROR, "Platform PEI Firmware Volume Initialization\n"));
DEBUG ( DEBUG (
@ -44,7 +42,6 @@ PeiFvInitialization (
) )
); );
FdBase = PcdGet32 (PcdOvmfMemFvBase) - PcdGet32 (PcdVariableStoreSize) - PcdGet32 (PcdFlashNvStorageFtwSpareSize);
BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize)); BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize));
// //

View File

@ -98,11 +98,9 @@ FindMainFv (
{ {
EFI_FIRMWARE_VOLUME_HEADER *Fv; EFI_FIRMWARE_VOLUME_HEADER *Fv;
UINTN Distance; UINTN Distance;
BOOLEAN Found;
ASSERT (((UINTN) *BootFv & EFI_PAGE_MASK) == 0); ASSERT (((UINTN) *BootFv & EFI_PAGE_MASK) == 0);
Found = FALSE;
Fv = *BootFv; Fv = *BootFv;
Distance = (UINTN) (*BootFv)->FvLength; Distance = (UINTN) (*BootFv)->FvLength;
do { do {