diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-09-04 10:27:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-04 10:27:56 -0700 |
commit | 80eafb8db78526ea2f18295aa435e6d251b67648 (patch) | |
tree | 8a721b3541119b793eea77e46fbbb089286bf606 /mobile-widgets | |
parent | 3affaedb38da49ab6b2dc29d241d4549c5117c8f (diff) | |
download | subsurface-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')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 3 |
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){ |