[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 07 of 45] gcc-4.6 compile fix: tools/console/client/main.c
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |