WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 40 of 45] gcc-4.6 compile fix: xen/common/tmem.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 40 of 45] gcc-4.6 compile fix: xen/common/tmem.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:59 +0200
Delivery-date: Thu, 19 May 2011 12:43:51 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832318; l=1320; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=/FT/fPqFPFbwz2XK1U1fShekMHw=; b=leM6F0vMIhnMmnHIaEDcsnyQsx2kCk0MIaFEpWm1NDF2bdwP6TMiqksTQZ1HPJPFhLP 19NUViH82reoK9Ga8xWOQsyyLNvGHn4Ql7WfmDAVEoFbI/AQYR0b4SO0aUaXNKlnVcNSP b5ZCJWbGGHRsfO7YudaizGJPQxjmPJz6iMQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824429 -7200
# Node ID fcc266b4dcc586b1900bcfeb522cf82df7215cf9
# Parent  a00c741e827f594ebd690a7e3d15d00a03e7bbef
gcc-4.6 compile fix: xen/common/tmem.c

tmem.c: In function 'tmem_evict':
tmem.c:1349:32: error: variable 'pgp_del' set but not used 
[-Werror=unused-but-set-variable]
tmem.c: In function 'do_tmem_put':
tmem.c:1586:25: error: variable 'pgpdel' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r a00c741e827f -r fcc266b4dcc5 xen/common/tmem.c
--- a/xen/common/tmem.c Thu May 19 19:00:27 2011 +0200
+++ b/xen/common/tmem.c Thu May 19 19:00:29 2011 +0200
@@ -1346,7 +1346,7 @@ obj_unlock:
 static int tmem_evict(void)
 {
     client_t *client = tmh_client_from_current();
-    pgp_t *pgp = NULL, *pgp2, *pgp_del;
+    pgp_t *pgp = NULL, *pgp2, *pgp_del __attribute__((unused));
     obj_t *obj;
     pool_t *pool;
     int ret = 0;
@@ -1583,7 +1583,7 @@ static NOINLINE int do_tmem_put(pool_t *
               pagesize_t pfn_offset, pagesize_t len, void *cva)
 {
     obj_t *obj = NULL, *objfound = NULL, *objnew = NULL;
-    pgp_t *pgp = NULL, *pgpdel = NULL;
+    pgp_t *pgp = NULL, *pgpdel __attribute__((unused));
     client_t *client = pool->client;
     int ret = client->frozen ? -EFROZEN : -ENOMEM;
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>