From patchwork Thu Oct 30 11:54:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Martin X-Patchwork-Id: 39830 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0F43E202FE for ; Thu, 30 Oct 2014 11:55:35 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id ex7sf3074607wid.8 for ; Thu, 30 Oct 2014 04:55:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:reply-to:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=+0labH+Yq1+U6e9WhwwwJDRXDxK/Q2LPglqAA1nJGrc=; b=ah9Dtp2pKUiHkoA+e45Rt4IjLYCnXzkf7cEIIDvF0NbDvQZCD7QKBKiV9gAtqDWrNH KKpRO0P4PG7ClZ8+vVVaz0Xw/NEyHDnlCByVrQTTOOpvmtA9ufw6Kv4BosOCcW/yw7rw tCvfjIHbfjGIhSOrtnPjBEJwWOWflKMoTL5dYTUvc+kmLvr5toDkjcC9XuLDKM406dxo z3Lhx1Dqu4IMOM1Zn/soodMccwT1UzIFn2JCVjyOPTqs/tIPBXoacWLoJdUnjQHU37Fp jDCX/3SFn/fFEOP/5iu56f4+oiFF1TatnaKmQLgj7RxmwV/adA/b7yxUyp/p2UnwUqiN a2+Q== X-Gm-Message-State: ALoCoQl0nTfZT3zou1RC0oCo3I4YvQHpnnLQMCGeblCds8JEdBDoRCcDTqT/qSiSb3GPdnN6DLD5 X-Received: by 10.181.29.105 with SMTP id jv9mr2914516wid.1.1414670135184; Thu, 30 Oct 2014 04:55:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.52 with SMTP id o20ls346646laa.3.gmail; Thu, 30 Oct 2014 04:55:34 -0700 (PDT) X-Received: by 10.112.54.229 with SMTP id m5mr18347820lbp.11.1414670134888; Thu, 30 Oct 2014 04:55:34 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id x8si11626499laj.107.2014.10.30.04.55.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id gf13so4234136lab.31 for ; Thu, 30 Oct 2014 04:55:34 -0700 (PDT) X-Received: by 10.152.120.199 with SMTP id le7mr18035031lab.67.1414670134693; Thu, 30 Oct 2014 04:55:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp26880lbz; Thu, 30 Oct 2014 04:55:34 -0700 (PDT) X-Received: by 10.50.61.209 with SMTP id s17mr18199334igr.34.1414670133412; Thu, 30 Oct 2014 04:55:33 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id l5si8261649icc.38.2014.10.30.04.55.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XjoJz-0002qA-1l; Thu, 30 Oct 2014 11:55:19 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XjoJw-0002pz-Ex for edk2-devel@lists.sourceforge.net; Thu, 30 Oct 2014 11:55:16 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of arm.com designates 217.140.96.21 as permitted sender) client-ip=217.140.96.21; envelope-from=olivier.martin@arm.com; helo=cam-smtp0.cambridge.arm.com; Received: from fw-tnat.cambridge.arm.com ([217.140.96.21] helo=cam-smtp0.cambridge.arm.com) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XjoJu-000225-Tg for edk2-devel@lists.sourceforge.net; Thu, 30 Oct 2014 11:55:16 +0000 Received: from e102605-lin.cambridge.arm.com (e102605-lin.cambridge.arm.com [10.1.193.159]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id s9UBt3mM029821; Thu, 30 Oct 2014 11:55:04 GMT From: Olivier Martin To: daryl.mcdaniel@intel.com Date: Thu, 30 Oct 2014 11:54:52 +0000 Message-Id: <1414670092-1069-1-git-send-email-olivier.martin@arm.com> X-Mailer: git-send-email 2.1.1 X-Spam-Score: -2.1 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XjoJu-000225-Tg Cc: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH] ShellPkg: Fixed variable set but never used X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: olivier.martin@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This warning/error raised by ARM toolchain prevents to build the EFI Shell for ARM 32-bit with this toolchain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Jaben Carsey --- ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index b4cf682..4921f28 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -898,7 +898,6 @@ AddNewGuidNameMapping( IN CONST CHAR8 *Lang OPTIONAL ) { - CONST GUID_INFO_BLOCK *Temp; EFI_STRING_ID NameID; HandleParsingHiiInit(); @@ -907,7 +906,7 @@ AddNewGuidNameMapping( return (EFI_INVALID_PARAMETER); } - if ((Temp = InternalShellGetNodeFromGuid(Guid)) != NULL) { + if ((InternalShellGetNodeFromGuid(Guid)) != NULL) { return (EFI_ACCESS_DENIED); }