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/
Home Products Support Community News


[Xen-devel] [PATCH 08 of 45] gcc-4.6 compile fix: tools/xenstat/xentop/x

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 08 of 45] gcc-4.6 compile fix: tools/xenstat/xentop/xentop.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:27 +0200
Delivery-date: Thu, 19 May 2011 12:14:51 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832022; l=1205; 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=3MVY/OSVCIc+0vtTA60S7XnMREQ=; b=JYAosqTG5ojTlAZ9d7GKLoyIa9HO4obxK8BzbmkpJAu/EGTdTHvxeUYey72ucuz+K8v crr05Hl2GVISoOsIvM1DGzX16FREF2ZF7J9EUAIXbrGmQAjQYTAuIwciA9yusOff1ElgI pi1helSF+cjWO5IIN69JzBQ8UFI/GX6Mux8=
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 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 
xentop.c: In function 'lines':
xentop.c:283:9: error: variable 'x' set but not used 

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

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