From e755a4ca10aad316c3620223206d63982793b26c Mon Sep 17 00:00:00 2001 From: jcarsey Date: Tue, 7 May 2013 17:57:58 +0000 Subject: ShellPkg: Fixed build error 'variable set but not used' GCC toolchain cannot build ShellPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14326 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c') diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c index 9d44abddd7..300c67f0d4 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c @@ -190,9 +190,6 @@ HMemImageRead ( CHAR16 *Str; HEFI_EDITOR_LINE *Line; - EDIT_FILE_TYPE BufferTypeBackup; - - BufferTypeBackup = HBufferImage.BufferType; HBufferImage.BufferType = FileTypeMemBuffer; Buffer = AllocateZeroPool (Size); @@ -301,8 +298,6 @@ HMemImageSave ( EFI_STATUS Status; VOID *Buffer; - EDIT_FILE_TYPE BufferTypeBackup; - // // not modified, so directly return // @@ -310,7 +305,6 @@ HMemImageSave ( return EFI_SUCCESS; } - BufferTypeBackup = HBufferImage.BufferType; HBufferImage.BufferType = FileTypeMemBuffer; Buffer = AllocateZeroPool (Size); -- cgit v1.2.3