From 04a5ec12f9cbdb24522f812b7c15d681c9ae49ae Mon Sep 17 00:00:00 2001 From: Alex Fishgait Date: Mon, 9 Oct 2023 14:10:24 +0200 Subject: [PATCH] solve maybe unused for c++11 --- tests/src/unit-allocator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/src/unit-allocator.cpp b/tests/src/unit-allocator.cpp index e0cdc13d1..d67966b22 100644 --- a/tests/src/unit-allocator.cpp +++ b/tests/src/unit-allocator.cpp @@ -283,7 +283,7 @@ struct NAlloc }; NAlloc() : - alloc() + alloc(),m_alloc_size(0) { } @@ -293,7 +293,7 @@ struct NAlloc pointer allocate(std::size_t n) { - + m_alloc_size = n; return static_cast(alloc.allocate(n)); // get memory from pool } void deallocate(pointer p, [[maybe_unused]] std::size_t n) @@ -314,6 +314,7 @@ struct NAlloc } my_allocator alloc; + std::size_t m_alloc_size; };