diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-09-23 17:38:43 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-23 09:15:10 -0700 |
commit | 03b2674a13fefb1767e94a76f079e9361e5cf775 (patch) | |
tree | 8455c97c40ba43766ea3f8c27512f2425e67b240 | |
parent | a3421a08f02acae62e014dd6c445ff06f52e5fb8 (diff) | |
download | subsurface-03b2674a13fefb1767e94a76f079e9361e5cf775.tar.gz |
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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |