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 07 of 45] gcc-4.6 compile fix: tools/console/client/m

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 07 of 45] gcc-4.6 compile fix: tools/console/client/main.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:26 +0200
Delivery-date: Thu, 19 May 2011 12:13:56 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832013; l=1154; 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=ZY+ps4QMFUkt2t15TepJrdC4oxk=; b=GMZZ/OQrqmllxUrnCzvKlRE42tltUv61eMjrfrZ6SSuZLPSdyx2S73H6dxbvkVcHO1x jllzq2Rjb2n+nO8PCk9Ot1cfyTqicHUEaNIn+DgZYfdxpKKqkET2LLJOSP3WT6RJJaBF5 /dUCWfWQsmt/KAL73Ny+RnpqiyGTfRqbBGk=
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 1305824388 -7200
# Node ID 82703d3639a6dd4c31be22fe449029c5e7f6a2e3
# Parent  6f3f57bd82e41d6f3036d6686ca24dd2bb01739d
gcc-4.6 compile fix: tools/console/client/main.c

client/main.c: In function 'main':
client/main.c:280:12: error: variable 'xsfd' set but not used 

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 6f3f57bd82e4 -r 82703d3639a6 tools/console/client/main.c
--- a/tools/console/client/main.c       Thu May 19 18:59:47 2011 +0200
+++ b/tools/console/client/main.c       Thu May 19 18:59:48 2011 +0200
@@ -277,7 +277,7 @@ int main(int argc, char **argv)
        char *dom_path = NULL, *path = NULL;
-       int spty, xsfd;
+       int spty;
        struct xs_handle *xs;
        char *end;
        console_type type = CONSOLE_INVAL;
@@ -371,7 +371,6 @@ int main(int argc, char **argv)
        /* Set a watch on this domain's console pty */
        if (!xs_watch(xs, path, ""))
                err(errno, "Can't set watch for console pty");
-       xsfd = xs_fileno(xs);
        /* Wait a little bit for tty to appear.  There is a race
           condition that occurs after xend creates a domain.  This code

Xen-devel mailing list

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