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>
This commit is contained in:
Dirk Hohndel 2017-10-20 17:25:18 -04:00
parent 12dac214aa
commit 27c49fe3ad
6 changed files with 9 additions and 7 deletions

View file

@ -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()) {

View file

@ -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;