diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-04-20 21:15:52 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-04-20 21:15:52 -0400 |
| commit | 75998b569ae7ac79952a798f04bc7eb9487e2896 (patch) | |
| tree | b1cceac4244710ac248183973b8d78b71e01e4a6 /src/liballoc | |
| parent | f46c4e158d395cf6e186bf6afdf1705c12071cbe (diff) | |
| parent | f64510d72bbb7dbfba9dfcf643bd670940a952e9 (diff) | |
| download | rust-75998b569ae7ac79952a798f04bc7eb9487e2896.tar.gz rust-75998b569ae7ac79952a798f04bc7eb9487e2896.zip | |
Rollup merge of #24514 - krzysz00:no-warnings-in-liballoc, r=alexcrichton
When `liballoc` is compiled with `--cfg feature=\"external_features\"`, several `improper_ctypes` warnings are generated. Since these warnings are harmless, I have added a directive to suppress them.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 57baa811b9d..4c7441b1d2a 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -133,6 +133,7 @@ const MIN_ALIGN: usize = 16; #[cfg(feature = "external_funcs")] mod imp { + #[allow(improper_ctypes)] extern { fn rust_allocate(size: usize, align: usize) -> *mut u8; fn rust_deallocate(ptr: *mut u8, old_size: usize, align: usize); |
