diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-24 07:15:45 +0100 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 20:42:41 +0800 |
commit | f108e4363aebcb92b1eebfbef0264a70e5faf48c (patch) | |
tree | ba67065db92fd8826bfbd39608ce4576a28fab4c /ShellPkg/Library | |
parent | a8046dac23893376a63934ae17ea728fbd6db7fc (diff) | |
download | edk2-platforms-f108e4363aebcb92b1eebfbef0264a70e5faf48c.tar.xz |
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>
(cherry picked from commit e36ed7a84b2768443de22371f0aad5cf502328b1)
Diffstat (limited to 'ShellPkg/Library')
-rw-r--r-- | ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c index fb0c76e2e9..5acd8d49f7 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);
}
|