From 521c4662bf1cb8f74aa76781f55be993e07dd6ed Mon Sep 17 00:00:00 2001 From: Sally Cochenour Date: Sat, 21 Mar 2020 23:09:05 -0400 Subject: [PATCH] void out heap after done asserting, to fix an unused variable compile error I get --- src/k_bheap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/k_bheap.c b/src/k_bheap.c index 777a62e84..40c652b5e 100644 --- a/src/k_bheap.c +++ b/src/k_bheap.c @@ -65,6 +65,8 @@ static bheapitem_t *K_BHeapItemsCompare(bheap_t *heap, bheapitem_t *item1, bheap I_Assert(K_BHeapItemValidate(heap, item1)); I_Assert(K_BHeapItemValidate(heap, item2)); + (void)heap; + if (item1->value < item2->value) { lowervalueitem = item1; @@ -99,6 +101,8 @@ static void K_BHeapSwapItems(bheap_t *heap, bheapitem_t *item1, bheapitem_t *ite I_Assert(K_BHeapItemValidate(heap, item1)); I_Assert(K_BHeapItemValidate(heap, item2)); + (void)heap; + { size_t tempitemindex = item1->heapindex; bheapitem_t tempitemstore = *item1;