Skip to content

Commit 557a0b8

Browse files
committed
Allow unused unsafe for vxworks in alligned_malloc to resolve build errors
1 parent 1509944 commit 557a0b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/sys/alloc/unix.rs

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ cfg_if::cfg_if! {
7171
}
7272
} else {
7373
#[inline]
74+
#[cfg_attr(target_os = "vxworks", allow(unused_unsafe))]
7475
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
7576
let mut out = ptr::null_mut();
7677
// We prefer posix_memalign over aligned_alloc since it is more widely available, and

0 commit comments

Comments
 (0)