diff --git a/std/src/sys/alloc/unix.rs b/std/src/sys/alloc/unix.rs index 46ed7de7162f8..dfce50aec130d 100644 --- a/std/src/sys/alloc/unix.rs +++ b/std/src/sys/alloc/unix.rs @@ -71,6 +71,7 @@ cfg_if::cfg_if! { } } else { #[inline] + #[cfg_attr(target_os = "vxworks", allow(unused_unsafe))] unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 { let mut out = ptr::null_mut(); // We prefer posix_memalign over aligned_alloc since it is more widely available, and