]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/UefiShellDebug1CommandsLib: remove unused but set variable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 24 Mar 2016 06:15:45 +0000 (07:15 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 24 Mar 2016 06:46:18 +0000 (07:46 +0100)
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>
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c

index fb0c76e2e9db75a680ece56706793907530625d7..5acd8d49f765fcd4a29fe687967d95b44bdd08d4 100644 (file)
@@ -759,7 +759,6 @@ FileBufferRefresh (
 \r
   UINTN                   StartRow;\r
   UINTN                   EndRow;\r
-  UINTN                   FStartRow;\r
   UINTN                   Tmp;\r
 \r
   Orig                  = MainEditor.ColorAttributes;\r
@@ -832,8 +831,6 @@ FileBufferRefresh (
         EndRow    = Tmp;\r
       }\r
 \r
-      FStartRow = StartRow;\r
-\r
       StartRow  = 2 + StartRow - FileBuffer.LowVisibleRange.Row;\r
       EndRow    = 2 + EndRow - FileBuffer.LowVisibleRange.Row;\r
 \r
@@ -841,7 +838,6 @@ FileBufferRefresh (
       //\r
       // not mouse selection actions\r
       //\r
-      FStartRow = FileBuffer.LowVisibleRange.Row;\r
       StartRow  = 2;\r
       EndRow    = (MainEditor.ScreenSize.Row - 1);\r
     }\r