summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-28 21:44:11 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-29 14:56:39 -0800
commite8278becd2fdcd41d3e6c16902343efc88a1ed01 (patch)
tree634a7391f7c25de5e8394eea9e5a19c613296938 /core
parentfd9c905ba357a37fe13338600bbc2b669c867f6f (diff)
downloadsubsurface-e8278becd2fdcd41d3e6c16902343efc88a1ed01.tar.gz
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>
Diffstat (limited to 'core')
-rw-r--r--core/profile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/profile.c b/core/profile.c
index 8821b4363..d95ef1a0a 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -399,7 +399,7 @@ struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer
bool seen = false;
static struct plot_info pi;
int maxdepth = dive->maxdepth.mm;
- unsigned int maxtime = 0;
+ int maxtime = 0;
int maxpressure = 0, minpressure = INT_MAX;
int maxhr = 0, minhr = INT_MAX;
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
struct deco_state plot_deco_state;
init_decompression(&plot_deco_state, dive);
+#else
+ (void)planner_ds;
#endif
/* Create the new plot data */
free((void *)last_pi_entry_new);