Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
CAMLprim taking (void) as argument #5946
Original bug ID: 5946
Some C primitives of the OCaml otherlibs runtime are declared with "void" as parameters, and take the OCaml value () when they are called. It is not C-valid but works in practice with most C compilers.
I wrote a patch to fix it.
Steps to reproduce
To search these invalid functions, run:
$ grep -RIni CAMLprim otherlibs | grep '(void)'
Comment author: @damiendoligez
for win32graph: patch applied in 4.02 (commit 15033)
for labltk: report transferred to ocamlcore (issue 1412: https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1412&group_id=343&atid=1351 )