Revision: 14474
http://sourceforge.net/p/edk2/code/14474
Author: ydong10
Date: 2013-07-16 05:13:52 +0000 (Tue, 16 Jul 2013)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Eric Dong <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
trunk/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
Modified: trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c 2013-07-16 05:09:47 UTC
(rev 14473)
+++ trunk/edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c 2013-07-16 05:13:52 UTC
(rev 14474)
@@ -1001,7 +1001,6 @@
)
{
IFR_BLOCK_DATA VarBlockData;
- UINT8 *TmpBuffer;
UINT16 Offset;
UINT16 Width;
UINT64 VarValue;
@@ -1032,7 +1031,6 @@
Index = 0;
VarStoreName = NULL;
Status = EFI_SUCCESS;
- TmpBuffer = NULL;
VarValue = 0;
IfrVarStore = NULL;
IfrNameValueStore = NULL;
@@ -1586,16 +1584,12 @@
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;
Modified: trunk/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
2013-07-16 05:09:47 UTC (rev 14473)
+++ trunk/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
2013-07-16 05:13:52 UTC (rev 14474)
@@ -1433,20 +1433,12 @@
CHAR16 *VarStoreName;
UINT16 VarWidth;
UINT16 VarDefaultId;
- EFI_STRING GuidStr;
- EFI_STRING NameStr;
- EFI_STRING TempStr;
- UINTN LengthString;
BOOLEAN FirstOneOfOption;
LIST_ENTRY *LinkData;
LIST_ENTRY *LinkDefault;
EFI_IFR_VARSTORE_NAME_VALUE *IfrNameValueVarStore;
- LengthString = 0;
Status = EFI_SUCCESS;
- GuidStr = NULL;
- NameStr = NULL;
- TempStr = NULL;
BlockData = NULL;
DefaultDataPtr = NULL;
FirstOneOfOption = FALSE;
@@ -2875,7 +2867,6 @@
EFI_STRING ConfigHdr;
EFI_STRING StringPtr;
EFI_STRING Progress;
- BOOLEAN DataExist;
if (DataBaseRecord == NULL || DevicePath == NULL || Request == NULL ||
AltCfgResp == NULL) {
return EFI_INVALID_PARAMETER;
@@ -2891,7 +2882,6 @@
ConfigHdr = NULL;
HiiFormPackage = NULL;
PackageSize = 0;
- DataExist = FALSE;
Progress = *Request;
Status = GetFormPackageData (DataBaseRecord, &HiiFormPackage, &PackageSize);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits