xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: drop stray const from function return type
@ 2016-05-24 15:28 Jan Beulich
  2016-05-24 15:42 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2016-05-24 15:28 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Wei Liu

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

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;
 




[-- Attachment #2: libxl-no-const-return-type.patch --]
[-- Type: text/plain, Size: 636 bytes --]

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;
 

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-24 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 15:28 [PATCH] libxl: drop stray const from function return type Jan Beulich
2016-05-24 15:42 ` Ian Jackson
2016-05-24 15:44   ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).