1
Fork 0

Allow unused unsafe for vxworks in alligned_malloc to resolve build errors

This commit is contained in:
B I Mohammed Abbas 2024-09-20 17:26:42 +05:30
parent eb6a52c2f6
commit 4957eda2c1

View file

@ -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