From e14ee8775e1c1ab92ddbb9d1a85fa82bfa5c3778 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 30 Aug 2021 21:00:28 -0700 Subject: [PATCH] p_plaintext: 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 9bd9bf46d..d7504f2d2 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -89,7 +89,7 @@ static polygon_t p_egg = {.peripheries = 1, .sides = 1, .distortion = -0.3}; static polygon_t p_triangle = {.peripheries = 1, .sides = 3}; static polygon_t p_box = {.peripheries = 1, .sides = 4}; static polygon_t p_square = {.regular = TRUE, .peripheries = 1, .sides = 4}; -static polygon_t p_plaintext = { FALSE, 0, 4, 0., 0., 0. }; +static polygon_t p_plaintext = {.sides = 4}; static polygon_t p_plain = { FALSE, 0, 4, 0., 0., 0. }; static polygon_t p_diamond = { FALSE, 1, 4, 45., 0., 0. }; static polygon_t p_trapezium = { FALSE, 1, 4, 0., -.4, 0. }; -- 2.40.0