From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 19 of 45] gcc-4.6 compile fix: xen/common/grant_table.c Date: Thu, 19 May 2011 21:05:38 +0200 Message-ID: <5516ec1f996e50d65051.1305831938@probook.site> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1305824403 -7200 # Node ID 5516ec1f996e50d65051441e98674ee8cb799a48 # Parent 982cc1330a16cc27e3c1f16b4ee9874340ec01ed gcc-4.6 compile fix: xen/common/grant_table.c grant_table.c: In function '__gnttab_unmap_common': grant_table.c:768:22: error: variable 'old_pin' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Olaf Hering diff -r 982cc1330a16 -r 5516ec1f996e xen/common/grant_table.c --- a/xen/common/grant_table.c Thu May 19 19:00:02 2011 +0200 +++ b/xen/common/grant_table.c Thu May 19 19:00:03 2011 +0200 @@ -765,7 +765,6 @@ __gnttab_unmap_common( struct domain *ld, *rd; struct active_grant_entry *act; s16 rc = 0; - u32 old_pin; ld = current->domain; @@ -811,7 +810,6 @@ __gnttab_unmap_common( spin_lock(&rd->grant_table->lock); act = &active_entry(rd->grant_table, op->map->ref); - old_pin = act->pin; if ( op->frame == 0 ) {