# 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
|