From ffabf9d2e45a011aa079a6db6deade21eb803759 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 11 Sep 2021 08:57:04 -0700 Subject: [PATCH] p_underline: squash a -Wmissing-field-initializer warning --- lib/common/shapes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 6dc6de062..50d9dc3f0 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -105,7 +105,8 @@ static polygon_t p_folder = {.peripheries = 1, .sides = 4, .option = FOLDER}; static polygon_t p_box3d = {.peripheries = 1, .sides = 4, .option = BOX3D}; static polygon_t p_component = { .peripheries = 1, .sides = 4, .option = COMPONENT}; -static polygon_t p_underline = { FALSE, 1, 4, 0., 0., 0., UNDERLINE }; +static polygon_t p_underline = { + .peripheries = 1, .sides = 4, .option = UNDERLINE}; static polygon_t p_cylinder = { FALSE, 1, 19, 0., 0., 0., CYLINDER, (pointf*)&cylinder_gen }; /* redundant and undocumented builtin polygons */ -- 2.40.0