[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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:23 +0200
  • Delivery-date: Thu, 19 May 2011 12:10:48 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.