Reduce warnings

This commit is contained in:
Jeremy Soller
2018-08-27 07:12:24 -06:00
parent bab4e2896a
commit 8f5470fd27
20 changed files with 31 additions and 46 deletions
-2
View File
@@ -432,13 +432,11 @@ where
#[no_mangle]
pub extern "C" fn mktemp(name: *mut c_char) -> *mut c_char {
if inner_mktemp(name, 0, || unsafe {
let mut st: stat = mem::uninitialized();
let ret = if Sys::access(name, 0) != 0 && platform::errno == ENOENT {
Some(())
} else {
None
};
mem::forget(st);
ret
}).is_none()
{