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 11 of 45] gcc-4.6 compile fix: tools/libxl/libxl.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 11 of 45] gcc-4.6 compile fix: tools/libxl/libxl.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:30 +0200
Delivery-date: Thu, 19 May 2011 12:17:55 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832049; l=1411; 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=aAO3A7fAkPn48Nrg70lPxNHoXLA=; b=XSJBXNHZELK3618djox+Rqcp7XLW1GMXbCwvldAM9YPJ4qdw3sMIZfYzh+GLn8pk6j7 prIVcC5ZxXCe9AMweRG+W2RszxkqR60AKmcCz2V/MKG6JJ0Q6coaCp3Dgii8a8dbaaF8Q skg07sZDhap3sNqnXSuTGFWvgyPsmP7Tz7w=
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 1305824393 -7200
# Node ID da1b3aa3abf442694ba388968cc59b582ef3d8c9
# Parent  e4c2a83d9d302786e396d5a15278454905a261a1
gcc-4.6 compile fix: tools/libxl/libxl.c

libxl.c: In function 'libxl_domain_resume':
libxl.c:242:9: error: variable 'rc' set but not used 
[-Werror=unused-but-set-variable]
libxl.c: In function 'libxl_list_nics':
libxl.c:1339:17: error: variable 'list' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r e4c2a83d9d30 -r da1b3aa3abf4 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu May 19 18:59:52 2011 +0200
+++ b/tools/libxl/libxl.c       Thu May 19 18:59:53 2011 +0200
@@ -262,7 +262,7 @@ int libxl_domain_resume(libxl_ctx *ctx, 
     }
 out:
     libxl__free_all(&gc);
-    return 0;
+    return rc;
 }
 
 /*
@@ -1336,7 +1336,7 @@ libxl_nicinfo *libxl_list_nics(libxl_ctx
 {
     libxl__gc gc = LIBXL_INIT_GC(ctx);
     char *dompath, *nic_path_fe;
-    char **l, **list;
+    char **l;
     char *val, *tok;
     unsigned int nb_nics, i;
     libxl_nicinfo *res, *nics;
@@ -1344,7 +1344,7 @@ libxl_nicinfo *libxl_list_nics(libxl_ctx
     dompath = libxl__xs_get_dompath(&gc, domid);
     if (!dompath)
         goto err;
-    list = l = libxl__xs_directory(&gc, XBT_NULL,
+    l = libxl__xs_directory(&gc, XBT_NULL,
                            libxl__sprintf(&gc, "%s/device/vif", dompath), 
&nb_nics);
     if (!l)
         goto err;

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

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