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 15 of 45] gcc-4.6 compile fix: tools/debugger/gdbsx/g

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 15 of 45] gcc-4.6 compile fix: tools/debugger/gdbsx/gx/gx_comm.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:34 +0200
Delivery-date: Thu, 19 May 2011 12:22:08 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832086; l=958; 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=be6gPCSUvY0JmYzTLTRFy/wIucU=; b=hTS6jH+02s3TjD4p1dbqXboWOf8p06wTu7h8KUmdq81AOwphtuIwfQySCV5TCpERLDQ TuIuVtAx/bnJ4ejzObmedjQAK8MXBdQncWcwSVHbrGeeViAvUK3vapGX2beGQHe8UX/OI uLnWxQRySjjFzP/oHTbfTKoNipJiWFT2dZg=
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 1305824398 -7200
# Node ID b1d2f51888e912c2917867f0d23b6b090a95dc2d
# Parent  14b06ce705e33d9337f9b45a67d25fcc5bead3dc
gcc-4.6 compile fix: tools/debugger/gdbsx/gx/gx_comm.c

gx_comm.c: In function 'readchar':
gx_comm.c:166:14: error: variable 'll' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r 14b06ce705e3 -r b1d2f51888e9 tools/debugger/gdbsx/gx/gx_comm.c
--- a/tools/debugger/gdbsx/gx/gx_comm.c Thu May 19 18:59:57 2011 +0200
+++ b/tools/debugger/gdbsx/gx/gx_comm.c Thu May 19 18:59:58 2011 +0200
@@ -163,13 +163,11 @@ readchar(void)
     static char buf[BUFSIZ];
     static int bufcnt = 0;
     static char *bufp;
-    uint64_t ll;
 
     if (bufcnt-- > 0)
         return *bufp++ & 0x7f;
 
     bufcnt = read(remote_fd, buf, sizeof (buf));
-    ll = *(uint64_t *)buf;
     if (bufcnt <= 0) {
         if (bufcnt == 0)
             gxprt("readchar: Got EOF\n");

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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