From cab9870be36a54934543c750310d0e0abfded3e6 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:13:30 +0200 Subject: profile.c: mark get_local_sac() as unused Signed-off-by: Lubomir I. Ivanov --- subsurface-core/profile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subsurface-core') diff --git a/subsurface-core/profile.c b/subsurface-core/profile.c index edba51ebd..8cc6efb12 100644 --- a/subsurface-core/profile.c +++ b/subsurface-core/profile.c @@ -157,6 +157,9 @@ void remember_event(const char *eventname) evn_used++; } +/* UNUSED! */ +static int get_local_sac(struct plot_data *entry1, struct plot_data *entry2, struct dive *dive) __attribute__((unused)); + /* Get local sac-rate (in ml/min) between entry1 and entry2 */ static int get_local_sac(struct plot_data *entry1, struct plot_data *entry2, struct dive *dive) { -- cgit v1.2.3-70-g09d2 From 80a67b7a2734bf117b2c648b1d689ddb17ba2a42 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:15:49 +0200 Subject: profile.c: remove unused variables Signed-off-by: Lubomir I. Ivanov --- subsurface-core/profile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'subsurface-core') diff --git a/subsurface-core/profile.c b/subsurface-core/profile.c index 8cc6efb12..1969a6fac 100644 --- a/subsurface-core/profile.c +++ b/subsurface-core/profile.c @@ -723,7 +723,6 @@ static int sac_between(struct dive *dive, struct plot_data *first, struct plot_d double pressuretime; pressure_t a, b; cylinder_t *cyl; - int duration; if (first == last) return 0; @@ -811,10 +810,7 @@ static void fill_sac(struct dive *dive, struct plot_info *pi, int idx) static void calculate_sac(struct dive *dive, struct plot_info *pi) { - int i = 0, last = 0; - struct plot_data *last_entry = NULL; - - for (i = 0; i < pi->nr; i++) + for (int i = 0; i < pi->nr; i++) fill_sac(dive, pi, i); } -- cgit v1.2.3-70-g09d2 From e31b6c0ed38734b2691acefb8667a828d40108db Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:18:30 +0200 Subject: dive.c: remove unused variable Signed-off-by: Lubomir I. Ivanov --- subsurface-core/dive.c | 1 - 1 file changed, 1 deletion(-) (limited to 'subsurface-core') diff --git a/subsurface-core/dive.c b/subsurface-core/dive.c index 2ae84ca1e..82012fa25 100644 --- a/subsurface-core/dive.c +++ b/subsurface-core/dive.c @@ -2878,7 +2878,6 @@ static struct dive *create_new_copy(struct dive *from) static void force_fixup_dive(struct dive *d) { struct divecomputer *dc = &d->dc; - int old_maxdepth = dc->maxdepth.mm; int old_temp = dc->watertemp.mkelvin; int old_mintemp = d->mintemp.mkelvin; int old_maxtemp = d->maxtemp.mkelvin; -- cgit v1.2.3-70-g09d2