From patchwork Thu Mar 24 06:28:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 64291 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp451473lbc; Wed, 23 Mar 2016 23:28:36 -0700 (PDT) X-Received: by 10.66.244.233 with SMTP id xj9mr10156068pac.19.1458800913928; Wed, 23 Mar 2016 23:28:33 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id e3si9974775pap.82.2016.03.23.23.28.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 23:28:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; 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 2001:19d0:306:5::1 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 64DBC1A1F07; Wed, 23 Mar 2016 23:28:58 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 445501A1EFB for ; Wed, 23 Mar 2016 23:28:56 -0700 (PDT) Received: by mail-wm0-x22a.google.com with SMTP id u125so226026wmg.1 for ; Wed, 23 Mar 2016 23:28:31 -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=Dkeb9OMKYmEmCTP+E/M3zUeOgostDOPyHbpN91NWtxg=; b=CqtrMZlNcLf0sjOnEiSAugq8rNEvxspnXMydBodhaxYKu9CbEoEgJJsyN6RnXw6ldm jxEwyQksvd56CQZHZScqjfQGdt3vaPcjnF5SOStUyS9sJs64pi8cwXEep+YCf/wuooeF dyMbPDG9g+maFd+56of4r/n+v8SyyJaF/kixo= 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=Dkeb9OMKYmEmCTP+E/M3zUeOgostDOPyHbpN91NWtxg=; b=J8a+7PS3kbThX8lDGgWDcvT2CQYp5ZDxQN+wZ3jvp2yYKkohYP9XfUIV2sYnRI5Wjf bKrNfVEd2Ra5k14+h/dp+0Nxu1HMIM5FWVFq52Ho9cWkJcT6gSCFF0+gFLCiW8YG6H7Y /N622frRe2+3iBrH7T3hcsdTpqpFil8A8ueL7zv6yJZDmpHISaoR6tGs37GdOFROcEdF P8f4Y49UoLars3RNSWmExiFAOUpqypn6vquZmcPXylnlfqAnUYVnDOscJlXcRJ+J0E30 xI1LG/jRXdsZnS54/G4eDYpxVEIshviPaIYI5Ap6l0yPZBPU6E9Cuz3RbId4l5ZcG8ee g5Gw== X-Gm-Message-State: AD7BkJJqsspzAbp0xwS9Xrix7lYXSr/u2E6Zat+eqQ93Z6EH7hT8uJ830h8sJYxq/8lEXi8h X-Received: by 10.28.220.215 with SMTP id t206mr8230802wmg.68.1458800909866; Wed, 23 Mar 2016 23:28:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 23:28:29 -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:19 +0100 Message-Id: <1458800900-11913-4-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 3/4] UefiCpuPkg/MtrrLib: 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 TempQWord 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 --- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2 -- 1 file changed, 2 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/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 199e165d466a..5ed9f226e4d1 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -459,11 +459,9 @@ ProgramFixedMtrr ( { UINT32 MsrNum; UINT32 ByteShift; - UINT64 TempQword; UINT64 OrMask; UINT64 ClearMask; - TempQword = 0; OrMask = 0; ClearMask = 0;