|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] [PATCH 07 of 45] gcc-4.6 compile fix:	tools/console/client/m 
| # HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824388 -7200
# Node ID 82703d3639a6dd4c31be22fe449029c5e7f6a2e3
# Parent  6f3f57bd82e41d6f3036d6686ca24dd2bb01739d
gcc-4.6 compile fix: tools/console/client/main.c
client/main.c: In function 'main':
client/main.c:280:12: error: variable 'xsfd' set but not used 
[-Werror=unused-but-set-variable]
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 6f3f57bd82e4 -r 82703d3639a6 tools/console/client/main.c
--- a/tools/console/client/main.c       Thu May 19 18:59:47 2011 +0200
+++ b/tools/console/client/main.c       Thu May 19 18:59:48 2011 +0200
@@ -277,7 +277,7 @@ int main(int argc, char **argv)
 
        };
        char *dom_path = NULL, *path = NULL;
-       int spty, xsfd;
+       int spty;
        struct xs_handle *xs;
        char *end;
        console_type type = CONSOLE_INVAL;
@@ -371,7 +371,6 @@ int main(int argc, char **argv)
        /* Set a watch on this domain's console pty */
        if (!xs_watch(xs, path, ""))
                err(errno, "Can't set watch for console pty");
-       xsfd = xs_fileno(xs);
 
        /* Wait a little bit for tty to appear.  There is a race
           condition that occurs after xend creates a domain.  This code
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | [Xen-devel] [PATCH 04 of 45] gcc-4.6 compile fix:	tools/misc/gtraceview.c, Olaf Hering
[Xen-devel] [PATCH 05 of 45] gcc-4.6 compile fix:	tools/xcutils/xc_restore.c, Olaf Hering
[Xen-devel] [PATCH 06 of 45] gcc-4.6 compile fix: tools/firmware/rombios/32bit/tcgbios/tcgbios.c, Olaf Hering
[Xen-devel] [PATCH 07 of 45] gcc-4.6 compile fix:	tools/console/client/main.c,
Olaf Hering <=
[Xen-devel] [PATCH 08 of 45] gcc-4.6 compile fix:	tools/xenstat/xentop/xentop.c, Olaf Hering
[Xen-devel] [PATCH 09 of 45] gcc-4.6 compile fix:	tools/libxl/xl_cmdimpl.c, Olaf Hering
[Xen-devel] [PATCH 10 of 45] gcc-4.6 compile fix:	tools/libxl/libxlu_cfg.c, Olaf Hering
[Xen-devel] [PATCH 11 of 45] gcc-4.6 compile fix:	tools/libxl/libxl.c, Olaf Hering
[Xen-devel] [PATCH 12 of 45] gcc-4.6 compile fix:	tools/libxl/libxl_pci.c, Olaf Hering
[Xen-devel] [PATCH 13 of 45] gcc-4.6 compile fix:	tools/libxl/libxl_dom.c, Olaf Hering
[Xen-devel] [PATCH 14 of 45] gcc-4.6 compile fix:	tools/libxl/libxl_utils.c, Olaf Hering
[Xen-devel] [PATCH 15 of 45] gcc-4.6 compile fix: tools/debugger/gdbsx/gx/gx_comm.c, Olaf Hering
[Xen-devel] [PATCH 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c, Olaf Hering
[Xen-devel] [PATCH 17 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/netlink/libnetlink.c, Olaf Hering |  |  | 
  
    |  |  |