--- a/tests/test_mempool.c Thu Nov 07 20:22:56 2024 +0100 +++ b/tests/test_mempool.c Thu Nov 07 22:46:58 2024 +0100 @@ -81,7 +81,7 @@ static unsigned test_mempool_destructor_called; -static void test_mempool_destructor(__attribute__((__unused__)) void *mem) { +static void test_mempool_destructor(cx_attr_unused void *mem) { test_mempool_destructor_called++; } @@ -119,10 +119,10 @@ cxFree(pool->allocator, mem1); CX_TEST_ASSERT(pool->size == 0); - cxMalloc(pool->allocator, 16); - cxMalloc(pool->allocator, 16); + mem1 = cxMalloc(pool->allocator, 16); mem1 = cxMalloc(pool->allocator, 16); - cxMalloc(pool->allocator, 16); + mem1 = cxMalloc(pool->allocator, 16); + mem2 = cxMalloc(pool->allocator, 16); mem2 = cxMalloc(pool->allocator, 16); CX_TEST_ASSERT(pool->size == 5);