diff options
| author | B I Mohammed Abbas <bimohammadabbas@gmail.com> | 2024-09-20 17:26:42 +0530 |
|---|---|---|
| committer | B I Mohammed Abbas <bimohammadabbas@gmail.com> | 2024-09-20 17:27:16 +0530 |
| commit | 4957eda2c17ff43d52ece67b118ec304e5c41f11 (patch) | |
| tree | 3cceedb2d4d88200804d5ffab09ff69fd9a105a5 /library/std/src/sys/alloc/unix.rs | |
| parent | eb6a52c2f6add6b8afa0736f914e6d212d5af95d (diff) | |
| download | rust-4957eda2c17ff43d52ece67b118ec304e5c41f11.tar.gz rust-4957eda2c17ff43d52ece67b118ec304e5c41f11.zip | |
Allow unused unsafe for vxworks in alligned_malloc to resolve build errors
Diffstat (limited to 'library/std/src/sys/alloc/unix.rs')
| -rw-r--r-- | library/std/src/sys/alloc/unix.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/alloc/unix.rs b/library/std/src/sys/alloc/unix.rs index 46ed7de7162..dfce50aec13 100644 --- a/library/std/src/sys/alloc/unix.rs +++ b/library/std/src/sys/alloc/unix.rs @@ -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 |
