From 9d3be5a16590f3418d289e916e0edf3e26a33ca1 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 7 Mar 2016 16:17:36 -0300 Subject: Silence warnings in gaspressures.c Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- subsurface-core/gaspressures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subsurface-core/gaspressures.c') diff --git a/subsurface-core/gaspressures.c b/subsurface-core/gaspressures.c index a8bb80812..3cbb36773 100644 --- a/subsurface-core/gaspressures.c +++ b/subsurface-core/gaspressures.c @@ -312,7 +312,7 @@ static void fill_missing_tank_pressures(struct dive *dive, struct plot_info *pi, * scale pressures, so it ends up being a unitless scaling * factor. */ -static inline int calc_pressure_time(struct dive *dive, struct divecomputer *dc, struct plot_data *a, struct plot_data *b) +static inline int calc_pressure_time(struct dive *dive, struct plot_data *a, struct plot_data *b) { int time = b->sec - a->sec; int depth = (a->depth + b->depth) / 2; @@ -379,7 +379,7 @@ void populate_pressure_information(struct dive *dive, struct divecomputer *dc, s /* If track_pr structure already exists, then update it: */ /* discrete integration of pressure over time to get the SAC rate equivalent */ if (current) { - entry->pressure_time = calc_pressure_time(dive, dc, entry - 1, entry); + entry->pressure_time = calc_pressure_time(dive, entry - 1, entry); current->pressure_time += entry->pressure_time; current->t_end = entry->sec; } -- cgit v1.2.3-70-g09d2