mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
12dac214aa
commit
27c49fe3ad
6 changed files with 9 additions and 7 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue