WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 04 of 45] gcc-4.6 compile fix: tools/misc/gtraceview.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 04 of 45] gcc-4.6 compile fix: tools/misc/gtraceview.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:23 +0200
Delivery-date: Thu, 19 May 2011 12:10:48 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305831986; l=809; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=2XYm+rL3wPMA6LHfAIjpdU8qRN0=; b=jMWGK9n6iY8wqVMT+S/WX3qaPHFUCI6EQYQ9dgywLAczJ2/RZNYX/HsxPwi9AVtVb+N TMF1neZBz4vWf7fMqP8RnhTbj+FLToBqBjTAXBapLY3PCOLEFtW1ENt9xTMYmLyKDMIc7 4z8X1dYH8KejxDUeeYw9DVbNpmT/mV/e/PU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# 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

<Prev in Thread] Current Thread [Next in Thread>