From fb1fcb6a1ce59878134be5680751435443e66baf Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Wed, 13 Apr 2022 15:21:38 -0700 Subject: [PATCH] Fix "unused variable" compiler warning (#899) --- tests/memtrace_test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/memtrace_test.c b/tests/memtrace_test.c index eaa29f069..8c1cdaad8 100644 --- a/tests/memtrace_test.c +++ b/tests/memtrace_test.c @@ -188,14 +188,12 @@ static int s_test_memtrace_none(struct aws_allocator *allocator, void *ctx) { struct aws_allocator *tracer = aws_mem_tracer_new(allocator, NULL, AWS_MEMTRACE_NONE, 0); void *allocs[NUM_ALLOCS] = {0}; - size_t total = 0; for (size_t idx = 0; idx < AWS_ARRAY_SIZE(allocs); ++idx) { uint32_t size = 0; aws_device_random_u32(&size); size = (size % 1024) + 1; /* not necessary to allocate a gajillion bytes */ allocs[idx] = aws_mem_acquire(tracer, size); - total += size; } ASSERT_UINT_EQUALS(0, aws_mem_tracer_bytes(tracer));