[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 04 of 45] gcc-4.6 compile fix: tools/misc/gtraceview.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1305824385 -7200 # Node ID cc966312031cef3c6463c77287087a339594fe18 # Parent cb0ed92e451d06789cb1a0ba14967bda3a7a5bcb gcc-4.6 compile fix: tools/misc/gtraceview.c gtraceview.c: In function 'nr_addch': gtraceview.c:625:9: error: variable 'y' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r cb0ed92e451d -r cc966312031c tools/misc/gtraceview.c --- a/tools/misc/gtraceview.c Thu May 19 18:59:44 2011 +0200 +++ b/tools/misc/gtraceview.c Thu May 19 18:59:45 2011 +0200 @@ -622,8 +622,7 @@ void crt_init(void) void nr_addch(int nr, int ch) { int i; - int y, x; - getyx(stdscr, y, x); + int x = getcurx(stdscr); for (i = 0; i < nr; i++) { if (x == COLS-1) break; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |