From 9fdcae5098e2eace0ea4e581b35b588b64ee573b Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 15 Aug 2025 14:20:28 -0400 Subject: [PATCH] Fix warning --- tests/test_arena_allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_arena_allocator.cpp b/tests/test_arena_allocator.cpp index 9f51424..eb19123 100644 --- a/tests/test_arena_allocator.cpp +++ b/tests/test_arena_allocator.cpp @@ -376,7 +376,7 @@ TEST_CASE("ArenaAllocator realloc functionality") { // Test case where it's NOT the last allocation - memory cannot be reclaimed ArenaAllocator arena2(256); void *ptr1 = arena2.allocate_raw(50); - void *ptr2 = arena2.allocate_raw(50); + (void)arena2.allocate_raw(50); size_t used_before2 = arena2.used_bytes(); CHECK(used_before2 >= 100); // At least 100 bytes due to potential alignment