Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4957eda

Browse files
committed
Allow unused unsafe for vxworks in alligned_malloc to resolve build errors
1 parent eb6a52c commit 4957eda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
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)