]> granicus.if.org Git - graphviz/commitdiff
sparse BinaryHeap_insert: squash -Wunused-variable warning in release mode
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 10 Jan 2023 16:00:40 +0000 (08:00 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 17:05:18 +0000 (09:05 -0800)
lib/sparse/BinaryHeap.c

index 08558154ae6a3da8d3d335ec54194d575b5e1623..36467f2b2a1f95c94872af4afe104412a440b3ff 100644 (file)
@@ -158,7 +158,7 @@ int BinaryHeap_insert(BinaryHeap h, void *item){
   size_t pos = siftUp(h, len);
   assert(h->id_to_pos[id] == pos);
   assert(h->pos_to_id[pos] == id);
-
+  (void)pos;
 
   return id;
 }