mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
fix unused parameter warning in clang
This commit is contained in:
parent
e42a22c9ca
commit
76db72814c
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ template<class T> struct mi_heap_destroy_stl_allocator : public _mi_heap_stl_all
|
||||||
template<class U> mi_heap_destroy_stl_allocator(const mi_heap_destroy_stl_allocator<U>& x) mi_attr_noexcept : _mi_heap_stl_allocator_common<T>(x) { }
|
template<class U> mi_heap_destroy_stl_allocator(const mi_heap_destroy_stl_allocator<U>& x) mi_attr_noexcept : _mi_heap_stl_allocator_common<T>(x) { }
|
||||||
|
|
||||||
mi_heap_destroy_stl_allocator select_on_container_copy_construction() const { return *this; }
|
mi_heap_destroy_stl_allocator select_on_container_copy_construction() const { return *this; }
|
||||||
void deallocate(T* p, size_type) { /* do nothing as we destroy the heap on destruct. */ }
|
void deallocate(T*, size_type) { /* do nothing as we destroy the heap on destruct. */ }
|
||||||
template<class U> struct rebind { typedef mi_heap_destroy_stl_allocator<U> other; };
|
template<class U> struct rebind { typedef mi_heap_destroy_stl_allocator<U> other; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue