From 60a5d1d07056887ab9aa1c9468db64b4c7850401 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Nov 2013 15:50:56 -0800 Subject: [PATCH] Fix a couple of warnings Removing unused variables. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 1 - statistics.c | 1 - 2 files changed, 2 deletions(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index e3cf0bccb..363158ec8 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -275,7 +275,6 @@ void MainTab::updateDiveInfo(int dive) // If exactly one trip has been selected, we show the location / notes // for the trip in the Info tab, otherwise we show the info of the // selected_dive - volume_t sacVal; temperature_t temp; struct dive *prevd; struct dive *d = get_dive(dive); diff --git a/statistics.c b/statistics.c index 8284dda8f..a382af5a4 100644 --- a/statistics.c +++ b/statistics.c @@ -271,7 +271,6 @@ void get_selected_dives_text(char *buffer, int size) void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]) { int idx; - volume_t gas_used = { 0 }; for (idx = 0; idx < MAX_CYLINDERS; idx++) { cylinder_t *cyl = &dive->cylinder[idx]; pressure_t start, end;