From patchwork Thu May 14 07:47:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 48474 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C2C9821411 for ; Thu, 14 May 2015 07:47:46 +0000 (UTC) Received: by layy10 with SMTP id y10sf17272220lay.0 for ; Thu, 14 May 2015 00:47:45 -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:subject :precedence:reply-to:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=cuL6Jqc0RRWJuUWJ/ELzePPW7Yd5OndiLVMA/jMMtUM=; b=gqHgn15CrwzzjuRhuRcbtzrKIRKdjg//9dJ/T4/cNSXP7djkQp+LmJKho7771ogF3W gbtp4/7lXg7beIuCptbOCR1W65hACVClGq97cBaEMTzQ7mUlyxEGPErccmjZGt8RQ3Mt q6EKKqEXFKTvuU3KbWQib3rX2zJQa0e0+SWhU2uFuHLsUDh2ewqOPiWoHXKgU4iRwo+o dxTF6Yy0Jd9O/nZYvvW/nXRDMvB+wSY8OsweUNtYyOko+Vf1RE5DTHF6lVNohGBMr8T7 YCSqCpAh/QYFOrDlVbWtvPEiophiaoe2Fb4xSIst1nn89K9Af2I8zzW4/fz7Dk+XXIjv Z2Fg== X-Gm-Message-State: ALoCoQkgqMERY8qIWmOmt8X9kstRInZT06f0Guoo2MHuQ9nzzDqQKS4s3mPSN5AyiFqvvYDEA3yH X-Received: by 10.152.87.140 with SMTP id ay12mr2172703lab.8.1431589665436; Thu, 14 May 2015 00:47:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.42 with SMTP id j10ls305508laf.27.gmail; Thu, 14 May 2015 00:47:45 -0700 (PDT) X-Received: by 10.152.29.198 with SMTP id m6mr2107799lah.11.1431589665294; Thu, 14 May 2015 00:47:45 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id uh8si13935739lac.136.2015.05.14.00.47.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2015 00:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laat2 with SMTP id t2so55929232laa.1 for ; Thu, 14 May 2015 00:47:45 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr2134459lbc.19.1431589665009; Thu, 14 May 2015 00:47:45 -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.108.230 with SMTP id hn6csp1056842lbb; Thu, 14 May 2015 00:47:43 -0700 (PDT) X-Received: by 10.107.4.196 with SMTP id 187mr3840361ioe.6.1431589663371; Thu, 14 May 2015 00:47:43 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id d16si6505036igm.0.2015.05.14.00.47.42 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 May 2015 00:47:43 -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 1Ysnrg-0005Tq-6z; Thu, 14 May 2015 07:47:32 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Ysnre-0005Tg-Ij for edk2-devel@lists.sourceforge.net; Thu, 14 May 2015 07:47:30 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.47 as permitted sender) client-ip=74.125.82.47; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wg0-f47.google.com; Received: from mail-wg0-f47.google.com ([74.125.82.47]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Ysnrc-0006Wg-HE for edk2-devel@lists.sourceforge.net; Thu, 14 May 2015 07:47:30 +0000 Received: by wgbhc8 with SMTP id hc8so32739784wgb.3 for ; Thu, 14 May 2015 00:47:22 -0700 (PDT) X-Received: by 10.194.22.170 with SMTP id e10mr1327023wjf.38.1431589642513; Thu, 14 May 2015 00:47:22 -0700 (PDT) Received: from localhost.localdomain (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id ju2sm11885728wid.12.2015.05.14.00.47.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 May 2015 00:47:21 -0700 (PDT) From: Ard Biesheuvel To: lersek@redhat.com, edk2-devel@lists.sourceforge.net, eric.dong@intel.com Date: Thu, 14 May 2015 09:47:23 +0200 Message-Id: <1431589643-23426-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 X-Spam-Score: -1.5 (-) 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 X-Headers-End: 1Ysnrc-0006Wg-HE Subject: [edk2] [PATCH] MdeModulePkg: remove unused variable DevicePathSize 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: ard.biesheuvel@linaro.org 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.50 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 Remove the unused DevicePathSize variable from EnumerateAllKeywords(). Due to our use of -Werror=unused-but-set-variable when building under GCC, the presence of DevicePathSize is breaking the build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c index c3cd064074a8..1756c15ce86e 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c @@ -2565,7 +2565,6 @@ EnumerateAllKeywords ( UINT8 *DevicePathPkg; UINT8 *DevicePath; HII_DATABASE_RECORD *DataBaseRecord; - UINTN DevicePathSize; HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageListNode; HII_STRING_PACKAGE_INSTANCE *StringPackage; CHAR8 *LocalNameSpace; @@ -2580,7 +2579,6 @@ EnumerateAllKeywords ( BOOLEAN ReadOnly; DataBaseRecord = NULL; - DevicePathSize = 0; Status = EFI_SUCCESS; MultiKeywordResp = NULL; DevicePath = NULL; @@ -2600,7 +2598,6 @@ EnumerateAllKeywords ( DataBaseRecord = CR (Link, HII_DATABASE_RECORD, DatabaseEntry, HII_DATABASE_RECORD_SIGNATURE); if ((DevicePathPkg = DataBaseRecord->PackageList->DevicePathPkg) != NULL) { DevicePath = DevicePathPkg + sizeof (EFI_HII_PACKAGE_HEADER); - DevicePathSize = GetDevicePathSize ((EFI_DEVICE_PATH_PROTOCOL *) DevicePath); } PackageListNode = DataBaseRecord->PackageList;