summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-03-24 07:15:45 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-03-24 07:46:18 +0100
commite36ed7a84b2768443de22371f0aad5cf502328b1 (patch)
treed88bad8ee7591b82898cb7bb0b42ce56b001a936 /ShellPkg
parentf6830005bb1a2fc225c89cdb1367b5058e939acc (diff)
downloadedk2-e36ed7a84b2768443de22371f0aad5cf502328b1.zip
edk2-e36ed7a84b2768443de22371f0aad5cf502328b1.tar.gz
edk2-e36ed7a84b2768443de22371f0aad5cf502328b1.tar.bz2
ShellPkg/UefiShellDebug1CommandsLib: remove unused but set variable
Remove variable FStartRow that is declared, assigned but never referenced. This fixes a warning emitted by GCC when -Wunused-but-set-variable is in effect. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
index fb0c76e..5acd8d4 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
@@ -759,7 +759,6 @@ FileBufferRefresh (
UINTN StartRow;
UINTN EndRow;
- UINTN FStartRow;
UINTN Tmp;
Orig = MainEditor.ColorAttributes;
@@ -832,8 +831,6 @@ FileBufferRefresh (
EndRow = Tmp;
}
- FStartRow = StartRow;
-
StartRow = 2 + StartRow - FileBuffer.LowVisibleRange.Row;
EndRow = 2 + EndRow - FileBuffer.LowVisibleRange.Row;
@@ -841,7 +838,6 @@ FileBufferRefresh (
//
// not mouse selection actions
//
- FStartRow = FileBuffer.LowVisibleRange.Row;
StartRow = 2;
EndRow = (MainEditor.ScreenSize.Row - 1);
}