From 6e84b4df30007c7e5e49b7bc7248933750af8a66 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Tue, 16 Jul 2013 05:13:52 +0000 Subject: Fixes the GCC build 'Unused variable' warning (raised an error when warnings are treated as errors). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14474 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'MdeModulePkg/Library/UefiHiiLib') diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c index 87aeb947ae..f48f42fcdb 100644 --- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c +++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c @@ -1001,7 +1001,6 @@ ValidateQuestionFromVfr ( ) { IFR_BLOCK_DATA VarBlockData; - UINT8 *TmpBuffer; UINT16 Offset; UINT16 Width; UINT64 VarValue; @@ -1032,7 +1031,6 @@ ValidateQuestionFromVfr ( Index = 0; VarStoreName = NULL; Status = EFI_SUCCESS; - TmpBuffer = NULL; VarValue = 0; IfrVarStore = NULL; IfrNameValueStore = NULL; @@ -1586,16 +1584,12 @@ GetBlockDataInfo ( LIST_ENTRY *Link; UINTN MaxBufferSize; EFI_STATUS Status; - CHAR8 *VarStoreName; - UINTN Index; IFR_BLOCK_DATA *BlockArray; UINT8 *DataBuffer; // // Initialize the local variables. // - Index = 0; - VarStoreName = NULL; Status = EFI_SUCCESS; BlockData = NULL; NewBlockData = NULL; -- cgit v1.2.3