Fix some warnings

This commit is contained in:
Richard Feldman 2021-04-05 20:23:59 -04:00
parent a7bed0fb32
commit e96a799a01

View file

@ -15,12 +15,13 @@ extern "C" {
#[link_name = "roc__mainForHost_1_Fx_caller"] #[link_name = "roc__mainForHost_1_Fx_caller"]
fn call_Fx( fn call_Fx(
flags: &(), flags: &'static u8,
function_pointer: *const u8, function_pointer: *const u8,
closure_data: *const u8, closure_data: *const u8,
output: *mut u8, output: *mut u8,
) -> (); ) -> ();
#[allow(dead_code)]
#[link_name = "roc__mainForHost_1_Fx_size"] #[link_name = "roc__mainForHost_1_Fx_size"]
fn size_Fx() -> i64; 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; let buffer: *mut u8 = buffer as *mut u8;
call_Fx( call_Fx(
&(), &0,
function_pointer, function_pointer,
closure_data_ptr as *const u8, closure_data_ptr as *const u8,
buffer as *mut u8, buffer as *mut u8,