aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/cylindermodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-20 17:25:18 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-20 17:25:18 -0400
commit27c49fe3ad8d1314c5aee5eee34668a494e31aa8 (patch)
tree0b0ed3a27f7c750873854c4ac730a59387c351e5 /qt-models/cylindermodel.cpp
parent12dac214aa96eb755f975f3eae464e4abd80ad76 (diff)
downloadsubsurface-27c49fe3ad8d1314c5aee5eee34668a494e31aa8.tar.gz
Silence random warnings
None of these seem to point to actual issues, so let's quiet them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/cylindermodel.cpp')
-rw-r--r--qt-models/cylindermodel.cpp5
1 files changed, 2 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()) {