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

[Xen-changelog] [xen-unstable] gcc-4.6 compile fix: tools/libxc/xc_domain_restore.c



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305879497 -3600
# Node ID fb0cfaf001568ae0168545e5c76c4021ddaedfd8
# Parent  ca7add782e6346df0fd1e2b5bfd3612f76d551bb
gcc-4.6 compile fix: tools/libxc/xc_domain_restore.c

xc_domain_restore.c: In function 'xc_domain_restore':
xc_domain_restore.c:1090:18: error: variable 'prev_pc' set but not
used [-Werror=unused-but-set-variable]

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


diff -r ca7add782e63 -r fb0cfaf00156 tools/libxc/xc_domain_restore.c
--- a/tools/libxc/xc_domain_restore.c   Fri May 20 09:17:46 2011 +0100
+++ b/tools/libxc/xc_domain_restore.c   Fri May 20 09:18:17 2011 +0100
@@ -1087,7 +1087,6 @@
     int vcpuextstate = 0;
     uint32_t vcpuextstate_size = 0;
     unsigned long mfn, pfn;
-    unsigned int prev_pc;
     int nraces = 0;
 
     /* The new domain's shared-info frame number. */
@@ -1255,7 +1254,6 @@
      * Now simply read each saved frame into its new machine frame.
      * We uncanonicalise page tables as we go.
      */
-    prev_pc = 0;
 
     n = m = 0;
  loadpages:

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


 


Rackspace

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