From 38f3a245147ee5a94eec074ca69d967ac20297c5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 30 Aug 2021 20:58:37 -0700 Subject: [PATCH] p_triangle: squash -Wmissing-field-initializer warning --- lib/common/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 230c98fe1..e06f7e51b 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -86,7 +86,7 @@ static polygon_t p_polygon = {.peripheries = 1}; static polygon_t p_ellipse = {.peripheries = 1, .sides = 1}; static polygon_t p_circle = {.regular = TRUE, .peripheries = 1, .sides = 1}; static polygon_t p_egg = {.peripheries = 1, .sides = 1, .distortion = -0.3}; -static polygon_t p_triangle = { FALSE, 1, 3, 0., 0., 0. }; +static polygon_t p_triangle = {.peripheries = 1, .sides = 3}; static polygon_t p_box = { FALSE, 1, 4, 0., 0., 0. }; static polygon_t p_square = { TRUE, 1, 4, 0., 0., 0. }; static polygon_t p_plaintext = { FALSE, 0, 4, 0., 0., 0. }; -- 2.49.0