Skip to content
Snippets Groups Projects
Verified Commit c57ac53d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Reduce warnings

parent b3dda751
No related branches found
No related tags found
No related merge requests found
......@@ -77,13 +77,17 @@ macro_rules! trace_expr {
trace!("{}", format_args!($($arg)*));
#[allow(unused_unsafe)]
let old_errno = unsafe { platform::errno };
#[allow(unused_unsafe)]
unsafe { platform::errno = 0; }
let ret = $expr;
#[allow(unused_unsafe)]
let errno = unsafe { platform::errno } as isize;
if errno == 0 {
#[allow(unused_unsafe)]
unsafe { platform::errno = old_errno; }
}
......
#![allow(non_snake_case)]
use alloc::boxed::Box;
use alloc::collections::BTreeMap;
use core::{intrinsics, ptr};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment