mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a3421a08f0
commit
03b2674a13
1 changed files with 1 additions and 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue