Signed-off-by: Anton Lundin <[email protected]>
---
 profile.c                         | 5 +----
 qt-ui/profile/diveprofileitem.cpp | 6 +++---
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/profile.c b/profile.c
index 79917d6..4f6517b 100644
--- a/profile.c
+++ b/profile.c
@@ -824,7 +824,6 @@ static void calculate_gas_information_new(struct dive 
*dive, struct plot_info *p
 {
        int i;
        double amb_pressure;
-       struct gas_pressures pressures;
 
        for (i = 1; i < pi->nr; i++) {
                int fo2, fhe;
@@ -894,9 +893,7 @@ static void debug_print_profiledata(struct plot_info *pi)
  */
 void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct 
plot_info *pi)
 {
-       FILE *f1;
-       int i, o2, he, o2low;
-       struct plot_data *entry;
+       int o2, he, o2low;
        init_decompression(dive);
        /* Create the new plot data */
        free((void *)last_pi_entry_new);
diff --git a/qt-ui/profile/diveprofileitem.cpp 
b/qt-ui/profile/diveprofileitem.cpp
index ef75f2f..10fb626 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -352,7 +352,7 @@ DivePercentageItem::DivePercentageItem(int i)
 
 void DivePercentageItem::modelDataChanged(const QModelIndex &topLeft, const 
QModelIndex &bottomRight)
 {
-       int last = -300, last_printed_hr = 0, sec = 0;
+       int sec = 0;
 
        // We don't have enougth data to calculate things, quit.
        if (!shouldCalculateStuff(topLeft, bottomRight))
@@ -401,7 +401,7 @@ DiveAmbPressureItem::DiveAmbPressureItem()
 
 void DiveAmbPressureItem::modelDataChanged(const QModelIndex &topLeft, const 
QModelIndex &bottomRight)
 {
-       int last = -300, last_printed_hr = 0, sec = 0;
+       int sec = 0;
 
        // We don't have enougth data to calculate things, quit.
        if (!shouldCalculateStuff(topLeft, bottomRight))
@@ -450,7 +450,7 @@ DiveGFLineItem::DiveGFLineItem()
 
 void DiveGFLineItem::modelDataChanged(const QModelIndex &topLeft, const 
QModelIndex &bottomRight)
 {
-       int last = -300, last_printed_hr = 0, sec = 0;
+       int sec = 0;
 
        // We don't have enougth data to calculate things, quit.
        if (!shouldCalculateStuff(topLeft, bottomRight))
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to