summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-26 12:14:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-26 12:14:46 -0700
commit0813d2168a8b7d85d2d12c042508ce1ed2d98fda (patch)
treec2b2282f2a22e377e8b37ff39b2fe1641727544c /core
parentaabcff9c5402a9b83c799a0a29172777e0383217 (diff)
downloadsubsurface-0813d2168a8b7d85d2d12c042508ce1ed2d98fda.tar.gz
Remove some unused variables
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/gaspressures.c1
-rw-r--r--core/profile.c2
-rw-r--r--core/save-git.c2
-rw-r--r--core/statistics.c1
4 files changed, 2 insertions, 4 deletions
diff --git a/core/gaspressures.c b/core/gaspressures.c
index ce88df047..890eb00b0 100644
--- a/core/gaspressures.c
+++ b/core/gaspressures.c
@@ -350,7 +350,6 @@ void populate_pressure_information(struct dive *dive, struct divecomputer *dc, s
cylinder_t *cylinder = dive->cylinder + sensor;
pr_track_t *track = NULL;
pr_track_t *current = NULL;
- struct plot_data *entry;
struct event *ev;
int missing_pr = 0, dense = 1;
diff --git a/core/profile.c b/core/profile.c
index eccbb5612..c63ea8294 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -1460,7 +1460,7 @@ void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int
char *buf2 = malloc(bufsize);
int avg_speed, max_asc_speed, max_desc_speed;
int delta_depth, avg_depth, max_depth, min_depth;
- int bar_used, last_pressure, pressurevalue, last_cylidx;
+ int bar_used, last_pressure, pressurevalue;
int count, last_sec, delta_time;
bool crossed_tankchange = false;
diff --git a/core/save-git.c b/core/save-git.c
index 1fe2642ff..8b555c191 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -348,7 +348,7 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
static void save_samples(struct membuffer *b, struct dive *dive, struct divecomputer *dc)
{
int nr;
- int o2sensor, legacy;
+ int o2sensor;
struct sample *s;
struct sample dummy = {};
diff --git a/core/statistics.c b/core/statistics.c
index ff8122124..4ce110d07 100644
--- a/core/statistics.c
+++ b/core/statistics.c
@@ -344,7 +344,6 @@ bool is_cylinder_used(struct dive *dive, int idx)
void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS])
{
int idx;
- struct divecomputer *dc;
for (idx = 0; idx < MAX_CYLINDERS; idx++) {
cylinder_t *cyl = &dive->cylinder[idx];