WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 09 of 45] gcc-4.6 compile fix: tools/libxl/xl_cmdimpl.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:28 +0200
Delivery-date: Thu, 19 May 2011 12:16:06 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832032; l=1602; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=+98p+JyVNJplz5hZauWhXZMOK9M=; b=cbx0qvfzPgmK+yGRXfMkGUf9YTGbr38s0SogaO+gDaEooYEhxFc6aoFBMJk5B9f+/l7 FM1/ENzXFJdqJ5x9gVB8zvOKcakZnbtBuUcCI1/x+kCNnHkwD+gIG0t7RV3I4KpGO9alk uzBQ6rn5SQodzYgJfyvIwB/WYZ4lnIvKpOE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# 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

<Prev in Thread] Current Thread [Next in Thread>