From: Matthew Fernandez Date: Mon, 6 Sep 2021 19:26:35 +0000 (-0700) Subject: find_closest_pairs: squash a -Wmissing-field-initializer compiler warning X-Git-Tag: 2.49.1~30^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2574be9622288a50fd7fae5cb941e95901a1cf68;p=graphviz find_closest_pairs: squash a -Wmissing-field-initializer compiler warning --- diff --git a/lib/neatogen/closest.c b/lib/neatogen/closest.c index 6faed8160..d132751f6 100644 --- a/lib/neatogen/closest.c +++ b/lib/neatogen/closest.c @@ -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);