From a473e4163b7d439cc581a049e06a413df77cd18a Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 31 Oct 2011 15:57:12 +0000 Subject: 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 --- OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OvmfPkg/Library') diff --git a/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c b/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c index a2276bfb2f..112f20e052 100644 --- a/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c +++ b/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c @@ -137,7 +137,6 @@ IterateVariablesInBuffer ( ) { RETURN_STATUS Status; - UINTN Count; UINTN TotalSizeUsed; UINTN SizeUsed; @@ -160,7 +159,7 @@ IterateVariablesInBuffer ( Data = NULL; for ( - Status = EFI_SUCCESS, Count = 0, TotalSizeUsed = 0; + Status = EFI_SUCCESS, TotalSizeUsed = 0; !EFI_ERROR (Status) && (TotalSizeUsed < MaxSize); ) { Status = UnpackVariableFromBuffer ( -- cgit v1.2.3