From: Olaf Hering Subject: [PATCH 40 of 45] gcc-4.6 compile fix: xen/common/tmem.c Date: Thu, 19 May 2011 21:05:59 +0200 Message-ID: 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 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 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;