diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-24 07:15:45 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-24 07:46:18 +0100 |
commit | e36ed7a84b2768443de22371f0aad5cf502328b1 (patch) | |
tree | d88bad8ee7591b82898cb7bb0b42ce56b001a936 /ShellPkg | |
parent | f6830005bb1a2fc225c89cdb1367b5058e939acc (diff) | |
download | edk2-platforms-e36ed7a84b2768443de22371f0aad5cf502328b1.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>
Diffstat (limited to 'ShellPkg')
-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);
}
|