From 76db72814c0af5e8974b3fc5c4b25676dd953559 Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Mon, 28 Nov 2022 10:54:45 -0800 Subject: [PATCH] fix unused parameter warning in clang --- include/mimalloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mimalloc.h b/include/mimalloc.h index ccd38ab5..3828bc25 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -534,7 +534,7 @@ template struct mi_heap_destroy_stl_allocator : public _mi_heap_stl_all template mi_heap_destroy_stl_allocator(const mi_heap_destroy_stl_allocator& x) mi_attr_noexcept : _mi_heap_stl_allocator_common(x) { } 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 struct rebind { typedef mi_heap_destroy_stl_allocator other; }; };