From 4cba9d20e505c004803097d92e297031cb3a1949 Mon Sep 17 00:00:00 2001 From: Bret Ambrose Date: Wed, 25 Oct 2023 13:25:29 -0700 Subject: [PATCH] static const --- tests/priority_queue_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {