fix lots of warnings

fix warnings
This commit is contained in:
Mackenzie Clark
2019-03-15 14:10:17 -07:00
parent b0b0a17d6e
commit 14104c2c8b
12 changed files with 70 additions and 46 deletions

View File

@ -90,6 +90,7 @@ pub unsafe fn allocate_cstr_on_stack<'a>(ctx: &'a mut Ctx, s: &str) -> (u32, &'a
(offset, slice)
}
#[cfg(not(target_os = "windows"))]
pub unsafe fn copy_terminated_array_of_cstrs(_ctx: &mut Ctx, cstrs: *mut *mut c_char) -> u32 {
let _total_num = {
let mut ptr = cstrs;