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

index d7504f2d272d87a3df5ceeed4e92605db0b8ec8d..5418b4531f06c20cfe56620f6a44dc46e10af6a3 100644 (file)
@@ -90,7 +90,7 @@ static polygon_t p_triangle = {.peripheries = 1, .sides = 3};
 static polygon_t p_box = {.peripheries = 1, .sides = 4};
 static polygon_t p_square = {.regular = TRUE, .peripheries = 1, .sides = 4};
 static polygon_t p_plaintext = {.sides = 4};
-static polygon_t p_plain = { FALSE, 0, 4, 0., 0., 0. };
+static polygon_t p_plain = {.sides = 4};
 static polygon_t p_diamond = { FALSE, 1, 4, 45., 0., 0. };
 static polygon_t p_trapezium = { FALSE, 1, 4, 0., -.4, 0. };
 static polygon_t p_parallelogram = { FALSE, 1, 4, 0., 0., .6 };