diff options
author | Daan Leijen <daan@microsoft.com> | 2022-04-10 12:55:59 -0700 |
---|---|---|
committer | Daan Leijen <daan@microsoft.com> | 2022-04-10 12:55:59 -0700 |
commit | 9afdf762a6f6909040903963b756f600cbea967e (patch) | |
tree | ad08a036a3122f86a65a354ca358a3dd0279d682 | |
parent | 2ab70f3c84a8ca66c4ffdbc19da0ad62c39765ef (diff) |
fix c++ compilation warning for an unused parameter
-rw-r--r-- | src/alloc-override.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc-override.c b/src/alloc-override.c index 12e9e0d..e29cb4b 100644 --- a/src/alloc-override.c +++ b/src/alloc-override.c @@ -166,8 +166,8 @@ typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t; void operator delete[](void* p, std::align_val_t al) noexcept { mi_free_aligned(p, static_cast<size_t>(al)); } void operator delete (void* p, std::size_t n, std::align_val_t al) noexcept { mi_free_size_aligned(p, n, static_cast<size_t>(al)); }; void operator delete[](void* p, std::size_t n, std::align_val_t al) noexcept { mi_free_size_aligned(p, n, static_cast<size_t>(al)); }; - void operator delete (void* p, std::align_val_t al, const std::nothrow_t& tag) noexcept { mi_free_aligned(p, static_cast<size_t>(al)); } - void operator delete[](void* p, std::align_val_t al, const std::nothrow_t& tag) noexcept { mi_free_aligned(p, static_cast<size_t>(al)); } + void operator delete (void* p, std::align_val_t al, const std::nothrow_t&) noexcept { mi_free_aligned(p, static_cast<size_t>(al)); } + void operator delete[](void* p, std::align_val_t al, const std::nothrow_t&) noexcept { mi_free_aligned(p, static_cast<size_t>(al)); } void* operator new( std::size_t n, std::align_val_t al) noexcept(false) { return mi_new_aligned(n, static_cast<size_t>(al)); } void* operator new[]( std::size_t n, std::align_val_t al) noexcept(false) { return mi_new_aligned(n, static_cast<size_t>(al)); } |