Re: [Xen-devel] [PATCH] libxl: drop stray const from function return type

2016-05-24 Thread Wei Liu
On Tue, May 24, 2016 at 04:42:12PM +0100, Ian Jackson wrote:
> Jan Beulich writes ("[PATCH] libxl: drop stray const from function return 
> type"):
> > Some compiler versions warn about this, causing the build to fail due
> > to -Werror.
> > 
> > Signed-off-by: Jan Beulich 
> 
> Acked-by: Ian Jackson 

Queued.

Thank you both.

___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH] libxl: drop stray const from function return type

2016-05-24 Thread Ian Jackson
Jan Beulich writes ("[PATCH] libxl: drop stray const from function return 
type"):
> Some compiler versions warn about this, causing the build to fail due
> to -Werror.
> 
> Signed-off-by: Jan Beulich 

Acked-by: Ian Jackson 

___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


[Xen-devel] [PATCH] libxl: drop stray const from function return type

2016-05-24 Thread Jan Beulich
Some compiler versions warn about this, causing the build to fail due
to -Werror.

Signed-off-by: Jan Beulich 

--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -5354,8 +5354,8 @@ libxl_numainfo *libxl_get_numainfo(libxl
 return ret;
 }
 
-static const int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info 
*info,
-xen_build_id_t *build)
+static int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info *info,
+  xen_build_id_t *build)
 {
 int r;
 



libxl: drop stray const from function return type

Some compiler versions warn about this, causing the build to fail due
to -Werror.

Signed-off-by: Jan Beulich 

--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -5354,8 +5354,8 @@ libxl_numainfo *libxl_get_numainfo(libxl
 return ret;
 }
 
-static const int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info 
*info,
-xen_build_id_t *build)
+static int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info *info,
+  xen_build_id_t *build)
 {
 int r;
 
___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel