Allow unused unsafe for vxworks in alligned_malloc to resolve build e… · qinheping/verify-rust-std@557a0b8 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 557a0b8
Allow unused unsafe for vxworks in alligned_malloc to resolve build errors
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -71,6 +71,7 @@ cfg_if::cfg_if! { | ||
71 | 71 | } |
72 | 72 | } else { |
73 | 73 | #[inline] |
74 | + #[cfg_attr(target_os = "vxworks", allow(unused_unsafe))] | |
74 | 75 | unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 { |
75 | 76 | let mut out = ptr::null_mut(); |
76 | 77 | // We prefer posix_memalign over aligned_alloc since it is more widely available, and |