]> granicus.if.org Git - graphviz/commitdiff
p_cylinder: squash -Wmissing-field-initializer warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Sep 2021 15:58:45 +0000 (08:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Sep 2021 19:34:52 +0000 (12:34 -0700)
lib/common/shapes.c

index 50d9dc3f05156d73075293baf41304d749b9006f..e2a515fa37a9c8c51e155baf6f8692587f26891e 100644 (file)
@@ -107,7 +107,10 @@ static polygon_t p_component = {
     .peripheries = 1, .sides = 4, .option = COMPONENT};
 static polygon_t p_underline = {
     .peripheries = 1, .sides = 4, .option = UNDERLINE};
-static polygon_t p_cylinder = { FALSE, 1, 19, 0., 0., 0., CYLINDER, (pointf*)&cylinder_gen };
+static polygon_t p_cylinder = {.peripheries = 1,
+                               .sides = 19,
+                               .option = CYLINDER,
+                               .vertices = (pointf *)&cylinder_gen};
 
 /* redundant and undocumented builtin polygons */
 static polygon_t p_doublecircle = { TRUE, 2, 1, 0., 0., 0. };