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 17 of 45] gcc-4.6 compile fix: tools/python/xen/lowle

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 17 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/netlink/libnetlink.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:36 +0200
Delivery-date: Thu, 19 May 2011 12:23:46 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832105; l=1123; 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=9c59DrHuu/Q15rJGhpBPNxqHEws=; b=bUlm+fL/L3SmtPQp9pExOE7dl8g5hlKs86gFLfdKHXRsxrkHjfXjFf68oPNFWQvzm9q 7hHIPO3C6rA2SUJ12vfVBtxzMtJaplMoWVa8/1Pb7OG/tz3lEGY1I/6D24tjJTrNsVlv+ SNEWgbBbICoyCAuV+xdesccH/miYnfCcdCk=
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 1305824400 -7200
# Node ID 0ef116beb380f5a8f2bef7825c0f5f450520e923
# Parent  166afe5e14106a064c5d63f6a8bc0b87817270bb
gcc-4.6 compile fix: tools/python/xen/lowlevel/netlink/libnetlink.c

xen/lowlevel/netlink/libnetlink.c: In function 'rtnl_from_file':
xen/lowlevel/netlink/libnetlink.c:436:30: error: variable 'type' set but not 
used [-Werror=unused-but-set-variable]

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

diff -r 166afe5e1410 -r 0ef116beb380 
tools/python/xen/lowlevel/netlink/libnetlink.c
--- a/tools/python/xen/lowlevel/netlink/libnetlink.c    Thu May 19 18:59:59 
2011 +0200
+++ b/tools/python/xen/lowlevel/netlink/libnetlink.c    Thu May 19 19:00:00 
2011 +0200
@@ -433,7 +433,7 @@ int rtnl_from_file(FILE *rtnl, rtnl_filt
        nladdr.nl_groups = 0;
 
        while (1) {
-               int err, len, type;
+               int err, len;
                int l;
 
                status = fread(&buf, 1, sizeof(*h), rtnl);
@@ -448,7 +448,6 @@ int rtnl_from_file(FILE *rtnl, rtnl_filt
                        return 0;
 
                len = h->nlmsg_len;
-               type= h->nlmsg_type;
                l = len - sizeof(*h);
 
                if (l<0 || len>sizeof(buf)) {

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

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