summaryrefslogtreecommitdiffstats
path: root/subsurface-core/gaspressures.c
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/gaspressures.c')
-rw-r--r--subsurface-core/gaspressures.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/subsurface-core/gaspressures.c b/subsurface-core/gaspressures.c
index 3cbb36773..5d3fc9791 100644
--- a/subsurface-core/gaspressures.c
+++ b/subsurface-core/gaspressures.c
@@ -200,7 +200,7 @@ static void fill_missing_tank_pressures(struct dive *dive, struct plot_info *pi,
{
int cyl, i;
struct plot_data *entry;
- pr_interpolate_t interpolate = { 0 };
+ pr_interpolate_t interpolate = { 0, 0, 0, 0 };
pr_track_t *last_segment = NULL;
int cur_pr[MAX_CYLINDERS]; // cur_pr[MAX_CYLINDERS] is the CCR diluent cylinder
@@ -347,6 +347,7 @@ static void debug_print_pressures(struct plot_info *pi)
*/
void populate_pressure_information(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, int o2_flag)
{
+ (void) dc;
int i, cylinderid, cylinderindex = -1;
pr_track_t *track_pr[MAX_CYLINDERS] = { NULL, };
pr_track_t *current = NULL;