diff --git a/tests/priority_queue_test.c b/tests/priority_queue_test.c index 4be9c3ca9..59c3a5729 100644 --- a/tests/priority_queue_test.c +++ b/tests/priority_queue_test.c @@ -458,7 +458,8 @@ static int s_priority_queue_clear_backpointers_test(struct aws_allocator *alloca ASSERT_SUCCESS(aws_priority_queue_init_dynamic(&queue, allocator, 16, sizeof(int), s_compare_ints)); - const size_t NODE_COUNT = 16; + static const size_t NODE_COUNT = 16; + struct aws_priority_queue_node queue_nodes[NODE_COUNT]; for (size_t i = 0; i < NODE_COUNT; ++i) {