summaryrefslogtreecommitdiff
path: root/OvmfPkg/Library
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 15:57:12 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 15:57:12 +0000
commita473e4163b7d439cc581a049e06a413df77cd18a (patch)
treed6d6f4872f1ac988466be0288052aba252747e50 /OvmfPkg/Library
parent8567a8ca77ef17c40af376da472a3b7224ce8756 (diff)
downloadedk2-platforms-a473e4163b7d439cc581a049e06a413df77cd18a.tar.xz
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
Diffstat (limited to 'OvmfPkg/Library')
-rw-r--r--OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c3
1 files changed, 1 insertions, 2 deletions
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 (