[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 10 of 45] gcc-4.6 compile fix: tools/libxl/libxlu_cfg.c


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:29 +0200
  • Delivery-date: Thu, 19 May 2011 12:17:00 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.