From dba6b74dd8b31cdb3ca0aba3ed33f644bca42de0 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Fri, 19 Jul 2024 20:08:40 -0400 Subject: 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. --- library/std/src/sys/pal/unix/alloc.rs | 2 +- library/std/src/sys/pal/unix/process/process_unsupported.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'library/std/src/sys') diff --git a/library/std/src/sys/pal/unix/alloc.rs b/library/std/src/sys/pal/unix/alloc.rs index eb3a57c212b..625ba5247f1 100644 --- a/library/std/src/sys/pal/unix/alloc.rs +++ b/library/std/src/sys/pal/unix/alloc.rs @@ -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] diff --git a/library/std/src/sys/pal/unix/process/process_unsupported.rs b/library/std/src/sys/pal/unix/process/process_unsupported.rs index 33d359d3f84..90d53464c83 100644 --- a/library/std/src/sys/pal/unix/process/process_unsupported.rs +++ b/library/std/src/sys/pal/unix/process/process_unsupported.rs @@ -1,4 +1,3 @@ -use crate::fmt; use crate::io; use crate::num::NonZero; use crate::sys::pal::unix::unsupported::*; -- cgit 1.4.1-3-g733a5