[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:59 +0200
  • Delivery-date: Thu, 19 May 2011 12:43:51 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.