mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix signed/unsigned issue
Also deal with an unused argument in the case of a Subsurface-mobile build. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fd9c905ba3
commit
e8278becd2
1 changed files with 3 additions and 1 deletions
|
@ -399,7 +399,7 @@ struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer
|
||||||
bool seen = false;
|
bool seen = false;
|
||||||
static struct plot_info pi;
|
static struct plot_info pi;
|
||||||
int maxdepth = dive->maxdepth.mm;
|
int maxdepth = dive->maxdepth.mm;
|
||||||
unsigned int maxtime = 0;
|
int maxtime = 0;
|
||||||
int maxpressure = 0, minpressure = INT_MAX;
|
int maxpressure = 0, minpressure = INT_MAX;
|
||||||
int maxhr = 0, minhr = INT_MAX;
|
int maxhr = 0, minhr = INT_MAX;
|
||||||
int mintemp = dive->mintemp.mkelvin;
|
int mintemp = dive->mintemp.mkelvin;
|
||||||
|
@ -1310,6 +1310,8 @@ void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plo
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#ifndef SUBSURFACE_MOBILE
|
||||||
struct deco_state plot_deco_state;
|
struct deco_state plot_deco_state;
|
||||||
init_decompression(&plot_deco_state, dive);
|
init_decompression(&plot_deco_state, dive);
|
||||||
|
#else
|
||||||
|
(void)planner_ds;
|
||||||
#endif
|
#endif
|
||||||
/* Create the new plot data */
|
/* Create the new plot data */
|
||||||
free((void *)last_pi_entry_new);
|
free((void *)last_pi_entry_new);
|
||||||
|
|
Loading…
Add table
Reference in a new issue