From: Matthew Fernandez Date: Tue, 11 Oct 2022 03:54:41 +0000 (-0700) Subject: common point_gencode: use C99 zero initialization for 'AF' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=941975c660ef74c9e04c6751caf66f5eb794037f;p=graphviz common point_gencode: use C99 zero initialization for 'AF' This moves to a more uniform initialization style that will enable us to ratchet up the -Wmissing-field-initializers warning category to fail-on-warning. --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index e156945dc..f17165b50 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -3147,7 +3147,7 @@ static void point_gencode(GVJ_t * job, node_t * n) for (j = 0; j < peripheries; j++) { enum {A_size = 2}; - pointf AF[A_size] = {{0}}; + pointf AF[A_size] = {0}; for (i = 0; i < sides; i++) { P = vertices[i + j * sides]; if (i < A_size) {