From b6f6ed83f439dc17d9bc0b6b4c2c46069c8d9647 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 25 Sep 2021 13:17:03 -0700 Subject: [PATCH] p_lpromoter: 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 43f6dffd2..18193a6c9 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -174,7 +174,8 @@ static polygon_t p_rpromoter = { .peripheries = 1, .sides = 4, .option = RPROMOTER}; static polygon_t p_rarrow = {.peripheries = 1, .sides = 4, .option = RARROW}; static polygon_t p_larrow = {.peripheries = 1, .sides = 4, .option = LARROW}; -static polygon_t p_lpromoter = { FALSE, 1, 4, 0., 0., 0., LPROMOTER}; +static polygon_t p_lpromoter = { + .peripheries = 1, .sides = 4, .option = LPROMOTER}; #define IS_BOX(n) (ND_shape(n)->polygon == &p_box) #define IS_PLAIN(n) (ND_shape(n)->polygon == &p_plain) -- 2.40.0