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 14 of 45] gcc-4.6 compile fix: tools/libxl/libxl_util

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 14 of 45] gcc-4.6 compile fix: tools/libxl/libxl_utils.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:33 +0200
Delivery-date: Thu, 19 May 2011 12:21:20 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832077; l=936; 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=XYw+UKa42SrEEdU70Wck2Cw5IDg=; b=XWlq9IUl4W5r4xV6LZeOmbzCd2V6LMuG2s0rF4u8GF75gQEBeesC9UWq32nLC79tTh8 kMfGH8Ai0vyICf2B/UEy+TQRZA+8Ta1uHuCSxHLvt0XxswJJaobZsugZtp1+/QsY8/ken 8Nor5Oy6mO26oekBGaXznkA3FGisyfI2rMg=
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 1305824397 -7200
# Node ID 14b06ce705e33d9337f9b45a67d25fcc5bead3dc
# Parent  2a87e67af2c83fe17f3860afd85b9ae7413317cb
gcc-4.6 compile fix: tools/libxl/libxl_utils.c

libxl_utils.c: In function 'libxl_devid_to_device_disk':
libxl_utils.c:535:18: error: variable 'devid_n' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r 2a87e67af2c8 -r 14b06ce705e3 tools/libxl/libxl_utils.c
--- a/tools/libxl/libxl_utils.c Thu May 19 18:59:56 2011 +0200
+++ b/tools/libxl/libxl_utils.c Thu May 19 18:59:57 2011 +0200
@@ -532,7 +532,7 @@ int libxl_devid_to_device_disk(libxl_ctx
     libxl__gc gc = LIBXL_INIT_GC(ctx);
     char *endptr, *val;
     char *dompath, *diskpath, *be_path;
-    unsigned int devid_n;
+    unsigned int devid_n __attribute__((unused));
     int rc = ERROR_INVAL;
 
     devid_n = strtoul(devid, &endptr, 10);

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

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