summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-04 10:27:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-04 10:27:56 -0700
commit80eafb8db78526ea2f18295aa435e6d251b67648 (patch)
tree8a721b3541119b793eea77e46fbbb089286bf606 /mobile-widgets/qmlmanager.cpp
parent3affaedb38da49ab6b2dc29d241d4549c5117c8f (diff)
downloadsubsurface-80eafb8db78526ea2f18295aa435e6d251b67648.tar.gz
Fix some warnings
At least the warnings about size potentially being uninitialized seem correct and valid. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 871f93866..9de5ac1c8 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -844,7 +844,8 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q
// info for first cylinder
if (myDive->getCylinder() != cylinder) {
diveChanged = true;
- int i, size, wp;
+ unsigned long i;
+ int size = 0, wp = 0;
for (i = 0; i < sizeof(tank_info) && tank_info[i].name != NULL; i++) {
if (tank_info[i].name == cylinder ) {
if (tank_info[i].ml > 0){