On Mon, 28 Oct 2019 at 16:38, Petre Pircalabu <ppircal...@bitdefender.com> wrote: > > gcc (GCC) 9.2.0 complains: > > xentoollog_stubs.c: In function ‘stub_xtl_ocaml_vmessage’: > xentoollog_stubs.c:93:16: error: initialization discards ‘const’ qualifier > from pointer target type [-Werror=discarded-qualifiers] > 93 | value *func = caml_named_value(xtl->vmessage_cb) ; > | ^~~~~~~~~~~~~~~~ > > This patch constifies the pointer returned by caml_named_value in order > to the accommodate newer versions of OCaml. > In OCaml >= 4.09 the return value pointer of caml_named_value is > declared const. > > https://github.com/ocaml/ocaml/commit/4f03a1467d29cf587df5a191830f1525506ee0e3 > > Signed-off-by: Petre Pircalabu <ppircal...@bitdefender.com> > Reviewed-by: Anthony PERARD <anthony.per...@citrix.com> > Release-acked-by: Juergen Gross <jgr...@suse.com>
Acked-by: Wei Liu <w...@xen.org> I will wait a few days for Christian and David to chime in. If I don't hear back by Monday, I'm going to commit this patch -- this is pretty mechanical anyway. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel