mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Fix some warnings
This commit is contained in:
parent
a7bed0fb32
commit
e96a799a01
1 changed files with 3 additions and 2 deletions
|
@ -15,12 +15,13 @@ extern "C" {
|
|||
|
||||
#[link_name = "roc__mainForHost_1_Fx_caller"]
|
||||
fn call_Fx(
|
||||
flags: &(),
|
||||
flags: &'static u8,
|
||||
function_pointer: *const u8,
|
||||
closure_data: *const u8,
|
||||
output: *mut u8,
|
||||
) -> ();
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[link_name = "roc__mainForHost_1_Fx_size"]
|
||||
fn size_Fx() -> i64;
|
||||
|
||||
|
@ -70,7 +71,7 @@ unsafe fn call_the_closure(function_pointer: *const u8, closure_data_ptr: *const
|
|||
let buffer: *mut u8 = buffer as *mut u8;
|
||||
|
||||
call_Fx(
|
||||
&(),
|
||||
&0,
|
||||
function_pointer,
|
||||
closure_data_ptr as *const u8,
|
||||
buffer as *mut u8,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue