]> granicus.if.org Git - graphviz/commitdiff
p_pentagon: squash -Wmissing-field-initializer warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 03:08:28 +0000 (20:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 10 Sep 2021 14:49:59 +0000 (07:49 -0700)
lib/common/shapes.c

index 86b98b6b9388cfa505336387bf6e352342f2a18c..59b4fc24b14008917a296a91c909202d595d022c 100644 (file)
@@ -95,7 +95,7 @@ static polygon_t p_diamond = {.peripheries = 1, .sides = 4, .orientation = 45.0}
 static polygon_t p_trapezium = {.peripheries = 1, .sides = 4, .distortion = -0.4};
 static polygon_t p_parallelogram = {.peripheries = 1, .sides = 4, .skew = 0.6};
 static polygon_t p_house = {.peripheries = 1, .sides = 5, .distortion = -0.64};
-static polygon_t p_pentagon = { FALSE, 1, 5, 0., 0., 0. };
+static polygon_t p_pentagon = {.peripheries = 1, .sides = 5};
 static polygon_t p_hexagon = { FALSE, 1, 6, 0., 0., 0. };
 static polygon_t p_septagon = { FALSE, 1, 7, 0., 0., 0. };
 static polygon_t p_octagon = { FALSE, 1, 8, 0., 0., 0. };