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 01 of 45] gcc-4.6 compile fix: tools/libxc/xc_tmem.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 01 of 45] gcc-4.6 compile fix: tools/libxc/xc_tmem.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:20 +0200
Delivery-date: Thu, 19 May 2011 12:07:39 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305831957; l=1318; 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=PXBddGr7g3VjQ1Lo02oJRgE/URU=; b=iO5s8Wb7Z7sPzCE5ioUx/sAgqRcbfy+1NaeQPPEKBZzn3zEJ90+FEUFo49gFZKgWwep XK5T0U2EKPPjsmBAfw+CJFbYRPgWwsqw7kWClCI1hYNzeIAkGEqiYrYy7nVVOm/BqDWI2 dyCTIufN4oh4fsxSLeh/H2bFA0F2yTK7nTU=
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 1305824381 -7200
# Node ID f1cb18c064c9588c1f6336cc5eb73b5a5b6e874b
# Parent  f531ed84b0661aa6863dc86d5e5638642bc47301
gcc-4.6 compile fix: tools/libxc/xc_tmem.c

xc_tmem.c: In function 'xc_tmem_restore':
xc_tmem.c:393:14: error: variable 'save_max_pools' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r f531ed84b066 -r f1cb18c064c9 tools/libxc/xc_tmem.c
--- a/tools/libxc/xc_tmem.c     Tue May 17 17:32:19 2011 +0100
+++ b/tools/libxc/xc_tmem.c     Thu May 19 18:59:41 2011 +0200
@@ -390,7 +390,7 @@ static int xc_tmem_restore_new_pool(
 
 int xc_tmem_restore(xc_interface *xch, int dom, int io_fd)
 {
-    uint32_t save_max_pools, save_version;
+    uint32_t save_version;
     uint32_t this_max_pools, this_version;
     uint32_t pool_id;
     uint32_t minusone;
@@ -400,7 +400,6 @@ int xc_tmem_restore(xc_interface *xch, i
     save_version = 
xc_tmem_control(xch,0,TMEMC_SAVE_GET_VERSION,dom,0,0,0,NULL);
     if ( save_version == -1 )
         return -1; /* domain doesn't exist */
-    save_max_pools = 
xc_tmem_control(xch,0,TMEMC_SAVE_GET_MAXPOOLS,0,0,0,0,NULL);
     if ( read_exact(io_fd, &this_version, sizeof(this_version)) )
         return -1;
     if ( read_exact(io_fd, &this_max_pools, sizeof(this_max_pools)) )

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