fix compiler errors for debug build

This commit is contained in:
Mackenzie Clark 2019-03-27 17:23:07 -07:00
parent 423f154177
commit 9619019baf
2 changed files with 1 additions and 5 deletions

View File

@ -425,10 +425,6 @@ pub fn ___syscall142(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_in
let readfds_ptr = emscripten_memory_pointer!(ctx.memory(0), readfds) as _; let readfds_ptr = emscripten_memory_pointer!(ctx.memory(0), readfds) as _;
let writefds_ptr = emscripten_memory_pointer!(ctx.memory(0), writefds) as _; let writefds_ptr = emscripten_memory_pointer!(ctx.memory(0), writefds) as _;
let result = unsafe { libc::select(nfds, readfds_ptr, writefds_ptr, 0 as _, 0 as _) }; let result = unsafe { libc::select(nfds, readfds_ptr, writefds_ptr, 0 as _, 0 as _) };
debug!(
"set read descriptors AFTER select: {:?}",
set_file_descriptors
);
debug!("select returns {}", result); debug!("select returns {}", result);
result result
} }

View File

@ -205,7 +205,7 @@ pub fn ___syscall196(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 {
buf_ptr, buf_ptr,
result, result,
unsafe { std::ffi::CStr::from_ptr(path).to_str().unwrap() }, unsafe { std::ffi::CStr::from_ptr(path).to_str().unwrap() },
Error::last_os_error(), std::io::Error::last_os_error(),
); );
result result
} }