Skip to content

Commit 2c3db0f

Browse files
Fix warnings when checking armv6k-nintendo-3ds
Also fix one instance of unsafe_op_in_unsafe_fn that's specific to horizon + vita - most others should be common with other code.
1 parent 9057c3f commit 2c3db0f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

library/std/src/os/horizon/raw.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
definitions"
1010
)]
1111
#![allow(deprecated)]
12+
#![allow(dead_code)]
1213

1314
use crate::os::raw::c_long;
1415
use crate::os::unix::raw::{gid_t, uid_t};

library/std/src/sys/pal/unix/alloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ cfg_if::cfg_if! {
6767
))] {
6868
#[inline]
6969
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
70-
libc::memalign(layout.align(), layout.size()) as *mut u8
70+
unsafe { libc::memalign(layout.align(), layout.size()) as *mut u8 }
7171
}
7272
} else {
7373
#[inline]

library/std/src/sys/pal/unix/process/process_unsupported.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::fmt;
21
use crate::io;
32
use crate::num::NonZero;
43
use crate::sys::pal::unix::unsupported::*;

0 commit comments

Comments
 (0)