diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-25 10:09:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-25 10:09:22 +0200 |
| commit | 508b433e2789598a5102824927d0342b0c17bc4e (patch) | |
| tree | 54bd5db51d6b3255e7e501167e145f93be395ee5 /library/std/src/sys/alloc | |
| parent | 1b5aa96d6016bafe50e071b45d4d2e3c90fd766f (diff) | |
| parent | 6d229f89ba9b828a0482b892eb87989a41c24af5 (diff) | |
| download | rust-508b433e2789598a5102824927d0342b0c17bc4e.tar.gz rust-508b433e2789598a5102824927d0342b0c17bc4e.zip | |
Rollup merge of #130549 - biabbas:riscv32_wrs_vxworks, r=nnethercote
Add RISC-V vxworks targets Risc-V 32 and RISC-V 64 targets are to be added in the target list.
Diffstat (limited to 'library/std/src/sys/alloc')
| -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 266b69cdc1e..1af9d766290 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 |
