[BRLTTY] Patch: support for OCaml-4.04

Jaroslav Skarvada jskarvad at redhat.com
Tue Nov 8 11:19:47 EST 2016



----- Original Message -----
> [quoted lines by Jaroslav Skarvada on 2016/11/08 at 07:58 -0500]
> 
> >it seems that brltty-5.4 doesn't compile with OCaml-4.04.
> >Tthe code uses CAMLlocal without calling CAMLparam which is against
> >current OCaml documentation. More details in Fedora bug [1]. Attached
> >patch should fix the problem
> 
> This gives me the following two warnings. How can they be resolved?
> 
> ./brlapi_stubs.c: In function ‘raise_brlapi_error’:
> ./brlapi_stubs.c:147:29: warning: unused variable ‘caml__frame’
> [-Wunused-variable]
> ./brlapi_stubs.c: In function ‘raise_brlapi_exception’:
> ./brlapi_stubs.c:161:29: warning: unused variable ‘caml__frame’
> [-Wunused-variable]
> 
> --
> Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
> God.
> Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
> EMail: Dave at Mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.org/
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at mielke.cc
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Which version of OCaml? I haven't encountered these warnings with OCaml-4.04.
To be honest I don't know much about OCaml, but this looks like OCaml bug,
I can forward it to OCaml maintainer

thanks & regards

Jaroslav


More information about the BRLTTY mailing list