summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/cylindermodel.cpp5
-rw-r--r--qt-models/diveplannermodel.cpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index d388cd0ef..cda27ebaf 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -135,11 +135,10 @@ QVariant CylindersModel::data(const QModelIndex &index, int role) const
if (!index.isValid() || index.row() >= MAX_CYLINDERS)
return ret;
-
- int mapping[MAX_CYLINDERS];
+
int same_gas = -1;
cylinder_t *cyl = &displayed_dive.cylinder[index.row()];
-
+
switch (role) {
case Qt::BackgroundRole: {
switch (index.column()) {
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 36aee8a42..707cdcfcc 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -988,6 +988,8 @@ int DivePlannerPointsModel::analyzeVariations(struct decostop *min, struct decos
(mid->time + 1)/60,
(left + right) / 2, unit,
(right - left) / 2, unit);
+#else
+ (void) unit;
#endif
++min;
++mid;