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

[Xen-devel] [PATCH 09 of 45] gcc-4.6 compile fix: tools/libxl/xl_cmdimpl.c


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

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824391 -7200
# Node ID aa460b276cea9b5b3b8d0d08411c674deda44772
# Parent  c6ae952c7f405323de3e07f74d92245aac81b8ed
gcc-4.6 compile fix: tools/libxl/xl_cmdimpl.c

xl_cmdimpl.c: In function 'main_migrate':
xl_cmdimpl.c:2880:29: error: variable 'monitor' set but not used 
[-Werror=unused-but-set-variable]
xl_cmdimpl.c: In function 'main_cpupoollist':
xl_cmdimpl.c:4868:9: error: variable 'opt_long' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r c6ae952c7f40 -r aa460b276cea tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Thu May 19 18:59:50 2011 +0200
+++ b/tools/libxl/xl_cmdimpl.c  Thu May 19 18:59:51 2011 +0200
@@ -2877,7 +2877,7 @@ int main_migrate(int argc, char **argv)
     const char *ssh_command = "ssh";
     char *rune = NULL;
     char *host;
-    int opt, daemonize = 1, monitor = 1, debug = 0;
+    int opt, daemonize = 1, debug = 0;
 
     while ((opt = def_getopt(argc, argv, "FC:s:ed", "migrate", 2)) != -1) {
         switch (opt) {
@@ -2894,7 +2894,6 @@ int main_migrate(int argc, char **argv)
             break;
         case 'e':
             daemonize = 0;
-            monitor = 0;
             break;
         case 'd':
             debug = 1;
@@ -4865,7 +4864,6 @@ int main_cpupoollist(int argc, char **ar
         {"cpus", 0, 0, 'c'},
         {0, 0, 0, 0}
     };
-    int opt_long = 0;
     int opt_cpus = 0;
     const char *pool = NULL;
     libxl_cpupoolinfo *poolinfo;
@@ -4884,7 +4882,6 @@ int main_cpupoollist(int argc, char **ar
             help("cpupool-list");
             return 0;
         case 'l':
-            opt_long = 1;
             break;
         case 'c':
             opt_cpus = 1;

_______________________________________________
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®.