]> granicus.if.org Git - graphviz/commitdiff
p_Mcircle: squash a -Wmissing-field-initializer warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Sep 2021 22:40:10 +0000 (15:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 16:59:20 +0000 (09:59 -0700)
lib/common/shapes.c

index d8cf85e4d6aba885e1bee6970906228de3bfcb8b..4686bb8358ea10830a3d6805eac02586bf7af655 100644 (file)
@@ -129,8 +129,10 @@ static polygon_t p_Mdiamond = {.peripheries = 1,
                                .option = DIAGONALS | AUXLABELS};
 static polygon_t p_Msquare = {
     .regular = TRUE, .peripheries = 1, .sides = 4, .option = DIAGONALS};
-static polygon_t p_Mcircle =
-    { TRUE, 1, 1, 0., 0., 0., DIAGONALS | AUXLABELS };
+static polygon_t p_Mcircle = {.regular = TRUE,
+                              .peripheries = 1,
+                              .sides = 1,
+                              .option = DIAGONALS | AUXLABELS};
 
 /* non-convex polygons */
 static polygon_t p_star = { FALSE, 1, 10, 0., 0., 0., 0, (pointf*)&star_gen };