]> granicus.if.org Git - graphviz/commitdiff
common point_gencode: use C99 zero initialization for 'AF'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 03:54:41 +0000 (20:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 04:18:19 +0000 (21:18 -0700)
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.

lib/common/shapes.c

index e156945dc739de0a697175fbfda105bc0d4079a1..f17165b50b47cd37779e336568b01eebbc391907 100644 (file)
@@ -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) {