From 6c39c8f7a826030ca51a6ef9f375414ca5d0ac17 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 18 Sep 2021 15:40:10 -0700 Subject: [PATCH] p_Mcircle: squash a -Wmissing-field-initializer warning --- lib/common/shapes.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index d8cf85e4d..4686bb835 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -129,8 +129,10 @@ static polygon_t p_Mdiamond = {.peripheries = 1, .option = DIAGONALS | AUXLABELS}; static polygon_t p_Msquare = { .regular = TRUE, .peripheries = 1, .sides = 4, .option = DIAGONALS}; -static polygon_t p_Mcircle = - { TRUE, 1, 1, 0., 0., 0., DIAGONALS | AUXLABELS }; +static polygon_t p_Mcircle = {.regular = TRUE, + .peripheries = 1, + .sides = 1, + .option = DIAGONALS | AUXLABELS}; /* non-convex polygons */ static polygon_t p_star = { FALSE, 1, 10, 0., 0., 0., 0, (pointf*)&star_gen }; -- 2.40.0