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

index 481ff825cf95aafb400dbfd8b94efc3c3ca03976..9bd9bf46d17326d6dbbf73a2a2f5a515eff220f6 100644 (file)
@@ -88,7 +88,7 @@ static polygon_t p_circle = {.regular = TRUE, .peripheries = 1, .sides = 1};
 static polygon_t p_egg = {.peripheries = 1, .sides = 1, .distortion = -0.3};
 static polygon_t p_triangle = {.peripheries = 1, .sides = 3};
 static polygon_t p_box = {.peripheries = 1, .sides = 4};
-static polygon_t p_square = { TRUE, 1, 4, 0., 0., 0. };
+static polygon_t p_square = {.regular = TRUE, .peripheries = 1, .sides = 4};
 static polygon_t p_plaintext = { FALSE, 0, 4, 0., 0., 0. };
 static polygon_t p_plain = { FALSE, 0, 4, 0., 0., 0. };
 static polygon_t p_diamond = { FALSE, 1, 4, 45., 0., 0. };