]> granicus.if.org Git - graphviz/commitdiff
find_closest_pairs: squash a -Wmissing-field-initializer compiler warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Sep 2021 19:26:35 +0000 (12:26 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 9 Sep 2021 14:32:12 +0000 (07:32 -0700)
lib/neatogen/closest.c

index 6faed8160f26c898ab19262c58a065a9e73daffe..d132751f616b4c42113c9094e13b84be2c8d8ed2 100644 (file)
@@ -174,7 +174,7 @@ find_closest_pairs(double *place, int n, int num_pairs,
     PairHeap heap;
     int *left = N_GNEW(n, int);
     int *right = N_GNEW(n, int);
-    Pair pair = { 0, 0 }, new_pair;
+    Pair pair = {0}, new_pair;
 
     /* Order the nodes according to their place */
     int *ordering = N_GNEW(n, int);