-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for cv-qualifiers ("const" etc.) #134
Comments
This would be quite useful, especially if |
This is an issue for
Granted they use |
Thanks for the report! The issue in |
There continues to be an issue with warnings on 4.10, with
The binding is generated from this: let connect =
foreign "uv_pipe_connect"
(ptr Types.Stream.Connect_request.t @->
ptr t @->
ocaml_string @->
Stream.Connect_request.trampoline @->
returning void) The generated code: value luv_stub_96_uv_pipe_connect(value x477, value x476, value x475,
value x474)
{
uv_connect_t* x478 = CTYPES_ADDR_OF_FATPTR(x477);
uv_pipe_t* x479 = CTYPES_ADDR_OF_FATPTR(x476);
char* x480 = CTYPES_PTR_OF_OCAML_STRING(x475);
void(* x481)(uv_connect_t*, int) = CTYPES_ADDR_OF_FATPTR(x474);
uv_pipe_connect(x478, x479, x480, x481);
return Val_unit;
} It appears that |
Great, thanks! |
With gcc14, |
#780 makes it possible to generate const-correct code, which should help to address issues with gcc14. |
That's a good idea, implemented in #782. |
|
There's currently no support for
const
,volatile
, etc., so bindings to those functions generate code with incorrect types.The text was updated successfully, but these errors were encountered: