Allow unused unsafe for vxworks in alligned_malloc to resolve build errors
This commit is contained in:
parent
eb6a52c2f6
commit
4957eda2c1
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ cfg_if::cfg_if! {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
#[cfg_attr(target_os = "vxworks", allow(unused_unsafe))]
|
||||||
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
|
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
|
||||||
let mut out = ptr::null_mut();
|
let mut out = ptr::null_mut();
|
||||||
// We prefer posix_memalign over aligned_alloc since it is more widely available, and
|
// We prefer posix_memalign over aligned_alloc since it is more widely available, and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue