From 27c49fe3ad8d1314c5aee5eee34668a494e31aa8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 20 Oct 2017 17:25:18 -0400 Subject: Silence random warnings None of these seem to point to actual issues, so let's quiet them. Signed-off-by: Dirk Hohndel --- qt-models/cylindermodel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qt-models/cylindermodel.cpp') 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()) { -- cgit v1.2.3-70-g09d2