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.
This commit is contained in:
Ian Chamberlain
2024-07-19 20:08:40 -04:00
parent 9057c3ffec
commit dba6b74dd8
4 changed files with 3 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ cfg_if::cfg_if! {
))] {
#[inline]
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
libc::memalign(layout.align(), layout.size()) as *mut u8
unsafe { libc::memalign(layout.align(), layout.size()) as *mut u8 }
}
} else {
#[inline]

View File

@@ -1,4 +1,3 @@
use crate::fmt;
use crate::io;
use crate::num::NonZero;
use crate::sys::pal::unix::unsupported::*;