|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 08 of 45] gcc-4.6 compile fix: tools/xenstat/xentop/x
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824390 -7200
# Node ID c6ae952c7f405323de3e07f74d92245aac81b8ed
# Parent 82703d3639a6dd4c31be22fe449029c5e7f6a2e3
gcc-4.6 compile fix: tools/xenstat/xentop/xentop.c
xentop.c: In function 'current_row':
xentop.c:275:9: error: variable 'x' set but not used
[-Werror=unused-but-set-variable]
xentop.c: In function 'lines':
xentop.c:283:9: error: variable 'x' set but not used
[-Werror=unused-but-set-variable]
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 82703d3639a6 -r c6ae952c7f40 tools/xenstat/xentop/xentop.c
--- a/tools/xenstat/xentop/xentop.c Thu May 19 18:59:48 2011 +0200
+++ b/tools/xenstat/xentop/xentop.c Thu May 19 18:59:50 2011 +0200
@@ -272,17 +272,13 @@ static void fail(const char *str)
/* Return the row containing the cursor. */
static int current_row(void)
{
- int y, x;
- getyx(stdscr, y, x);
- return y;
+ return getcury(stdscr);
}
/* Return the number of lines on the screen. */
static int lines(void)
{
- int y, x;
- getmaxyx(stdscr, y, x);
- return y;
+ return getmaxy(stdscr);
}
/* printf-style print function which calls printw, but only if the cursor is
_______________________________________________
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
[Xen-devel] [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c, Olaf Hering
|
|
|
|
|