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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 10 of 45] gcc-4.6 compile fix: tools/libxl/libxlu_cfg.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:29 +0200
Delivery-date: Thu, 19 May 2011 12:17:00 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832040; l=1000; 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=K/zcsmmC6b5BdRaHXodRQW4GpUs=; b=tTDiaYCToDq+BY1Jol2LGWAu+2PXhLvWVhLbOJaLwElf6yecsrmO4YnldsUehjVZBb0 lqwfAykXi1F56XuKEYJwVLrt7xnDfEhWybGCffdWinw4cVcpXZqGqys6tZsjTCeQGDPBe zS5V+W7IODl2tmPD39cNZAoShekrvAQNwxg=
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 1305824392 -7200
# Node ID e4c2a83d9d302786e396d5a15278454905a261a1
# Parent  aa460b276cea9b5b3b8d0d08411c674deda44772
gcc-4.6 compile fix: tools/libxl/libxlu_cfg.c

libxlu_cfg.c: In function 'xlu__cfgl_dequote':
libxlu_cfg.c:368:17: error: variable 'val' set but not used 
[-Werror=unused-but-set-variable]
libxlu_cfg.c:370:17: error: variable 'val' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r aa460b276cea -r e4c2a83d9d30 tools/libxl/libxlu_cfg.c
--- a/tools/libxl/libxlu_cfg.c  Thu May 19 18:59:51 2011 +0200
+++ b/tools/libxl/libxlu_cfg.c  Thu May 19 18:59:52 2011 +0200
@@ -349,7 +349,7 @@ char *xlu__cfgl_dequote(CfgParseContext 
 
 #define NUMERIC_CHAR(minlen,maxlen,base,basetext) do{                        \
                 char numbuf[(maxlen)+1], *ep;                                \
-                unsigned long val;                                           \
+                unsigned long val __attribute__((unused));                   \
                                                                              \
                 strncpy(numbuf,p,(maxlen));                                  \
                 numbuf[(maxlen)]= 0;                                         \

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

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