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

index 73b99f7ae8fe0200feaeede8c21db84ecb8ae0d3..7be23647b0daab1b6989fd2120383e8ea8aeb82b 100644 (file)
@@ -98,7 +98,7 @@ static polygon_t p_house = {.peripheries = 1, .sides = 5, .distortion = -0.64};
 static polygon_t p_pentagon = {.peripheries = 1, .sides = 5};
 static polygon_t p_hexagon = {.peripheries = 1, .sides = 6};
 static polygon_t p_septagon = {.peripheries = 1, .sides = 7};
-static polygon_t p_octagon = { FALSE, 1, 8, 0., 0., 0. };
+static polygon_t p_octagon = {.peripheries = 1, .sides = 8};
 static polygon_t p_note = { FALSE, 1, 4, 0., 0., 0., DOGEAR };
 static polygon_t p_tab = { FALSE, 1, 4, 0., 0., 0., TAB };
 static polygon_t p_folder = { FALSE, 1, 4, 0., 0., 0., FOLDER };