# 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
|