]> granicus.if.org Git - graphviz/commitdiff
p_ellipse: squash -Wmissing-field-initializer warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 31 Aug 2021 03:56:03 +0000 (20:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 01:01:30 +0000 (18:01 -0700)
lib/common/shapes.c

index df3c9c2ec57088fa150a18882beb5e2e4f433cf1..4f39dd7c8b2cb14be7829b58def6955307934946 100644 (file)
@@ -83,7 +83,7 @@ static poly_desc_t cylinder_gen = {
 static polygon_t p_polygon = {.peripheries = 1};
 
 /* builtin polygon descriptions */
-static polygon_t p_ellipse = { FALSE, 1, 1, 0., 0., 0. };
+static polygon_t p_ellipse = {.peripheries = 1, .sides = 1};
 static polygon_t p_circle = { TRUE, 1, 1, 0., 0., 0. };
 static polygon_t p_egg = { FALSE, 1, 1, 0., -.3, 0. };
 static polygon_t p_triangle = { FALSE, 1, 3, 0., 0., 0. };