From 03b2674a13fefb1767e94a76f079e9361e5cf775 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 23 Sep 2015 17:38:43 +0300 Subject: planner.c: fix missing brances warning for a 'struct gasmix' initialization, the 'permille' value from franction_t should have it's own braces. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index d4bf47854..67d999fa3 100644 --- a/planner.c +++ b/planner.c @@ -536,7 +536,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool char *temp = (char *)malloc(sz_temp); char buf[1000], *deco; int len, lastdepth = 0, lasttime = 0, lastsetpoint = -1, newdepth = 0, lastprintdepth = 0, lastprintsetpoint = -1; - struct gasmix lastprintgasmix = { -1, -1 }; + struct gasmix lastprintgasmix = {{ -1 }, { -1 }}; struct divedatapoint *dp = diveplan->dp; bool gaschange_after = !plan_verbatim; bool gaschange_before; -- cgit v1.2.3-70-g09d2