summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 15:58:05 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 15:58:05 +0000
commit7538d53684792266c37e91f11a3ce2b7fb1e32d9 (patch)
tree1a82491c7ef95953283429136bde44ed621ed944 /MdeModulePkg/Library
parent310580cf8a9656e3990b7d58fafdc0ce62b9b61f (diff)
downloadedk2-7538d53684792266c37e91f11a3ce2b7fb1e32d9.tar.gz
edk2-7538d53684792266c37e91f11a3ce2b7fb1e32d9.tar.bz2
edk2-7538d53684792266c37e91f11a3ce2b7fb1e32d9.zip
MdeModulePkg: 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 Reviewed-by: lgao4 Reviewed-by: erictian Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12617 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r--MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c2
-rw-r--r--MdeModulePkg/Library/UefiHiiLib/HiiLib.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
index 671c3332f9..3b4d4e03ad 100644
--- a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
+++ b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
@@ -1134,7 +1134,6 @@ InternalPrintLibSPrintMarker (
IN BASE_LIST BaseListMarker OPTIONAL
)
{
- CHAR8 *OriginalBuffer;
CHAR8 *EndBuffer;
CHAR8 ValueBuffer[MAXIMUM_VALUE_CHARACTERS];
UINT32 BytesPerOutputCharacter;
@@ -1185,7 +1184,6 @@ InternalPrintLibSPrintMarker (
// Reserve space for the Null terminator.
//
BufferSize--;
- OriginalBuffer = Buffer;
//
// Set the tag for the end of the input Buffer.
diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
index a87441e2c0..7a2415e9e5 100644
--- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
+++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
@@ -1630,12 +1630,11 @@ InternalHiiIfrValueAction (
EFI_GUID *VarGuid;
EFI_STRING VarName;
- UINT8 *PackageData;
EFI_HII_PACKAGE_LIST_HEADER *HiiPackageList;
UINTN PackageListLength;
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
EFI_DEVICE_PATH_PROTOCOL *TempDevicePath;
-
+
ConfigAltResp = NULL;
ConfigResp = NULL;
VarGuid = NULL;
@@ -1646,7 +1645,6 @@ InternalHiiIfrValueAction (
Index = 0;
TempDriverHandle = NULL;
HiiHandle = NULL;
- PackageData = NULL;
HiiPackageList = NULL;
//