Fix warnings

This commit is contained in:
Jeremy Soller
2018-07-13 09:52:53 -06:00
parent 52e02286f2
commit 4c4ce80fcd
8 changed files with 15 additions and 21 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ unsafe impl<'a> GlobalAlloc for Allocator {
dlmemalign(layout.align(), layout.size()) as *mut u8
}
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) {
dlfree(ptr as *mut c_void)
}
}