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

index 4686bb8358ea10830a3d6805eac02586bf7af655..05cb23c9c803f78d42a65da67e06eebcbcf700f7 100644 (file)
@@ -135,7 +135,8 @@ static polygon_t p_Mcircle = {.regular = TRUE,
                               .option = DIAGONALS | AUXLABELS};
 
 /* non-convex polygons */
-static polygon_t p_star = { FALSE, 1, 10, 0., 0., 0., 0, (pointf*)&star_gen };
+static polygon_t p_star = {
+    .peripheries = 1, .sides = 10, .vertices = (pointf *)&star_gen};
 
 /* biological circuit shapes, as specified by SBOLv*/
 /** gene expression symbols **/