Skip to content

Commit

Permalink
Allow unused unsafe for vxworks in alligned_malloc to resolve build e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
biabbas committed Sep 20, 2024
1 parent 1509944 commit 557a0b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/sys/alloc/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 557a0b8

Please # to comment.