mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-12 22:05:33 +00:00
clean up warnings
This commit is contained in:
parent
ab184aceea
commit
91d01d1c05
@ -301,7 +301,6 @@ pub fn run_emscripten_instance(
|
|||||||
|
|
||||||
if let Some(ep) = entrypoint {
|
if let Some(ep) = entrypoint {
|
||||||
debug!("Running entry point: {}", &ep);
|
debug!("Running entry point: {}", &ep);
|
||||||
let ep_fn = instance.dyn_func(&ep)?;
|
|
||||||
let arg = unsafe { allocate_cstr_on_stack(instance.context_mut(), args[0]).0 };
|
let arg = unsafe { allocate_cstr_on_stack(instance.context_mut(), args[0]).0 };
|
||||||
//let (argc, argv) = store_module_arguments(instance.context_mut(), args);
|
//let (argc, argv) = store_module_arguments(instance.context_mut(), args);
|
||||||
instance.call(&ep, &[Value::I32(arg as i32)])?;
|
instance.call(&ep, &[Value::I32(arg as i32)])?;
|
||||||
|
@ -127,14 +127,12 @@ pub fn ___syscall38(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> i32 {
|
|||||||
let old_path = emscripten_memory_pointer!(ctx.memory(0), old_path_addr) as *const i8;
|
let old_path = emscripten_memory_pointer!(ctx.memory(0), old_path_addr) as *const i8;
|
||||||
let new_path = emscripten_memory_pointer!(ctx.memory(0), new_path_addr) as *const i8;
|
let new_path = emscripten_memory_pointer!(ctx.memory(0), new_path_addr) as *const i8;
|
||||||
let result = unsafe { rename(old_path, new_path) };
|
let result = unsafe { rename(old_path, new_path) };
|
||||||
unsafe {
|
debug!(
|
||||||
debug!(
|
"=> old_path: {}, new_path: {}, result: {}",
|
||||||
"=> old_path: {}, new_path: {}, result: {}",
|
std::ffi::CStr::from_ptr(old_path).to_str().unwrap(),
|
||||||
std::ffi::CStr::from_ptr(old_path).to_str().unwrap(),
|
std::ffi::CStr::from_ptr(new_path).to_str().unwrap(),
|
||||||
std::ffi::CStr::from_ptr(new_path).to_str().unwrap(),
|
result
|
||||||
result
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,7 +272,6 @@ pub fn ___syscall192(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_in
|
|||||||
debug!("=> ptr: {}", ptr);
|
debug!("=> ptr: {}", ptr);
|
||||||
return ptr as i32;
|
return ptr as i32;
|
||||||
} else {
|
} else {
|
||||||
unimplemented!("temp during dev");
|
|
||||||
// return ENODEV
|
// return ENODEV
|
||||||
return -19;
|
return -19;
|
||||||
}
|
}
|
||||||
@ -487,7 +484,7 @@ pub fn ___syscall300(_ctx: &mut Ctx, _one: i32, _two: i32) -> i32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// utimensat
|
// utimensat
|
||||||
pub fn ___syscall320(ctx: &mut Ctx, _which: c_int, mut _varargs: VarArgs) -> c_int {
|
pub fn ___syscall320(_ctx: &mut Ctx, _which: c_int, mut _varargs: VarArgs) -> c_int {
|
||||||
debug!("emscripten::___syscall320 (utimensat), {}", _which);
|
debug!("emscripten::___syscall320 (utimensat), {}", _which);
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user