diff mbox

libxl: drop stray const from function return type

Message ID 57448F3302000078000EE60D@prv-mh.provo.novell.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Beulich May 24, 2016, 3:28 p.m. UTC
Some compiler versions warn about this, causing the build to fail due
to -Werror.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
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 <jbeulich@suse.com>

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

Comments

Ian Jackson May 24, 2016, 3:42 p.m. UTC | #1
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 <jbeulich@suse.com>

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Wei Liu May 24, 2016, 3:44 p.m. UTC | #2
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 <jbeulich@suse.com>
> 
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Queued.

Thank you both.
diff mbox

Patch

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