about summary refs log tree commit diff
path: root/src/liballoc/heap.rs
diff options
context:
space:
mode:
authorKrzysztof Drewniak <krzysdrewniak@gmail.com>2015-04-16 21:34:12 -0500
committerKrzysztof Drewniak <krzysdrewniak@gmail.com>2015-04-16 21:34:12 -0500
commitf64510d72bbb7dbfba9dfcf643bd670940a952e9 (patch)
tree8cdad7fc6e644f477fdd90bf374613aa6aa2e0d0 /src/liballoc/heap.rs
parent1014ac44f6271a55249b0488a2ce1cc49deed338 (diff)
downloadrust-f64510d72bbb7dbfba9dfcf643bd670940a952e9.tar.gz
rust-f64510d72bbb7dbfba9dfcf643bd670940a952e9.zip
Suppress improper_ctypes warnings when compiling liballoc with external_features
Diffstat (limited to 'src/liballoc/heap.rs')
-rw-r--r--src/liballoc/heap.rs1
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);