From: "Lubomir I. Ivanov" <[email protected]> "warning: 'bottom_time' may be used uninitialized in this function"
we set it to zero for now. Signed-off-by: Lubomir I. Ivanov <[email protected]> --- this patch went outside of the [5/5] series --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 8cc9b6f..c34b59a 100644 --- a/planner.c +++ b/planner.c @@ -692,7 +692,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, s bool stopping = false; bool clear_to_ascend; int clock, previous_point_time; - int avg_depth, bottom_time; + int avg_depth, bottom_time = 0; int last_ascend_rate; int best_first_ascend_cylinder; struct gasmix gas; -- 1.7.11.msysgit.0 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
