From patchwork Thu Mar 24 06:28:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 64290 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp451460lbc; Wed, 23 Mar 2016 23:28:33 -0700 (PDT) X-Received: by 10.66.66.46 with SMTP id c14mr10155204pat.79.1458800912071; Wed, 23 Mar 2016 23:28:32 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id p19si9909953pfi.248.2016.03.23.23.28.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 23:28:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 29ED11A1EF2; Wed, 23 Mar 2016 23:28:56 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6FD6C1A1EF8 for ; Wed, 23 Mar 2016 23:28:54 -0700 (PDT) Received: by mail-wm0-x231.google.com with SMTP id l68so260771275wml.0 for ; Wed, 23 Mar 2016 23:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2kqsZ+YqbMUD+hMn6XGdEvld/YJ53VtT8phMt/2i1zE=; b=eS98pXGXH4BZD0WzHaFIx9PNvX3b0guxA4XGyL1W7fVdwR38Lg+QJKN/ugYdACaU8v bhGKD3cMFA/DsXpWGqaREKlOMkY5ZP2IkY/UT/1jvzzwPTpE4vxAtVe9vOQ6vB4v2gNF jzSe4SAnnzwEvXRL4ha4ztlSnq+Ez5uFzGFSs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2kqsZ+YqbMUD+hMn6XGdEvld/YJ53VtT8phMt/2i1zE=; b=MEBE56m4fPqNexwgmDGwOI/vuy/KBW9Q3iRshs6MPGJe07VlClRsp30EHNy5rz6WW/ vzdpPeDNUWXmDWGN7Riy8dSnleKOXcShFL0/Z4sE4RO8++0TFdkYpi2as8f8ooNlaThP Ifbix1yGsejmBb4uIP3hmR7TbwsZUWCWBbEgNPjlz3TbufSAqlQAw2elwegqRzFTx8Pl MrF98b8AyPJPHxMAeuAnNkFeQzm+E0uL/crgFgScs4q1he8mjSvkeyiiJb4SI6+oJOzk kq+8v3IMDIPdMhXSRiQrnC93XhvRYdFbBYSwisgPS81v6pOiEeltXmgfGYzRzYdATn+u a20g== X-Gm-Message-State: AD7BkJIOKYWzJ6X1EODPUPbA+gfPZIBDkMo0NVv9iE2JVCLHJT+4oda2Bj34qpd2rDPR+G6q X-Received: by 10.194.205.138 with SMTP id lg10mr7622219wjc.153.1458800908136; Wed, 23 Mar 2016 23:28:28 -0700 (PDT) Received: from localhost.localdomain (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by smtp.gmail.com with ESMTPSA id w8sm5814691wjf.19.2016.03.23.23.28.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 23:28:27 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com, liming.gao@intel.com, star.zeng@intel.com, feng.tian@intel.com, shumin.qiu@intel.com, jaben.carsey@intel.com, jeff.fan@intel.com Date: Thu, 24 Mar 2016 07:28:18 +0100 Message-Id: <1458800900-11913-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458800900-11913-1-git-send-email-ard.biesheuvel@linaro.org> References: <1458800900-11913-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/4] ShellPkg/UefiShellDebug1CommandsLib: remove unused but set variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 --- ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c | 4 ---- 1 file changed, 4 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c index fb0c76e2e9db..5acd8d49f765 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); }