From 01cab0e94825cdd719b50d72ae6e4397abfd7dd3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 3 Sep 2021 20:05:48 -0700 Subject: [PATCH] p_trapezium: 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 6466a8046..1a04f973d 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -92,7 +92,7 @@ static polygon_t p_square = {.regular = TRUE, .peripheries = 1, .sides = 4}; static polygon_t p_plaintext = {.sides = 4}; static polygon_t p_plain = {.sides = 4}; static polygon_t p_diamond = {.peripheries = 1, .sides = 4, .orientation = 45.0}; -static polygon_t p_trapezium = { FALSE, 1, 4, 0., -.4, 0. }; +static polygon_t p_trapezium = {.peripheries = 1, .sides = 4, .distortion = -0.4}; static polygon_t p_parallelogram = { FALSE, 1, 4, 0., 0., .6 }; static polygon_t p_house = { FALSE, 1, 5, 0., -.64, 0. }; static polygon_t p_pentagon = { FALSE, 1, 5, 0., 0., 0. }; -- 2.40.0