[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] gcc-4.6 compile fix: tools/libxc/xc_tmem.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1305879466 -3600 # Node ID ca7add782e6346df0fd1e2b5bfd3612f76d551bb # Parent 50e1d0d0bbee9a2ef782840dd8650ff26ce13055 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 50e1d0d0bbee -r ca7add782e63 tools/libxc/xc_tmem.c --- a/tools/libxc/xc_tmem.c Fri May 20 09:15:40 2011 +0100 +++ b/tools/libxc/xc_tmem.c Fri May 20 09:17:46 2011 +0100 @@ -390,7 +390,7 @@ 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 @@ 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |