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

[Xen-devel] [PATCH 05 of 45] gcc-4.6 compile fix: tools/xcutils/xc_restore.c


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:24 +0200
  • Delivery-date: Thu, 19 May 2011 12:11:42 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824386 -7200
# Node ID d30215ff28c8f4c02476a4d41a83e76cb2f1f6fa
# Parent  cc966312031cef3c6463c77287087a339594fe18
gcc-4.6 compile fix: tools/xcutils/xc_restore.c

xc_restore.c: In function 'main':
xc_restore.c:22:28: error: variable 'apic' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r cc966312031c -r d30215ff28c8 tools/xcutils/xc_restore.c
--- a/tools/xcutils/xc_restore.c        Thu May 19 18:59:45 2011 +0200
+++ b/tools/xcutils/xc_restore.c        Thu May 19 18:59:46 2011 +0200
@@ -19,7 +19,7 @@ int
 main(int argc, char **argv)
 {
     unsigned int domid, store_evtchn, console_evtchn;
-    unsigned int hvm, pae, apic;
+    unsigned int hvm, pae;
     xc_interface *xch;
     int io_fd, ret;
     int superpages;
@@ -39,7 +39,6 @@ main(int argc, char **argv)
     console_evtchn = atoi(argv[4]);
     hvm  = atoi(argv[5]);
     pae  = atoi(argv[6]);
-    apic = atoi(argv[7]);
     if ( argc == 9 )
            superpages = atoi(argv[8]);
     else

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


 


Rackspace

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