From 548f852b76767b0a988bcc1b6926ad8a7a007c2f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 11 Sep 2021 08:56:18 -0700 Subject: [PATCH] p_component: squash -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 c9bf83c2b..6dc6de062 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -103,7 +103,8 @@ static polygon_t p_note = {.peripheries = 1, .sides = 4, .option = DOGEAR}; static polygon_t p_tab = {.peripheries = 1, .sides = 4, .option = TAB}; 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 = { FALSE, 1, 4, 0., 0., 0., COMPONENT }; +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_cylinder = { FALSE, 1, 19, 0., 0., 0., CYLINDER, (pointf*)&cylinder_gen }; -- 2.40.0