diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-07 22:40:55 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-07 22:40:55 +0200 |
commit | c2ff2be210cba14386d8b468dd3e6fde5f4abc40 (patch) | |
tree | 40ae2156718611b33db7e46a69d8e9641cb8e29e /desktop-widgets/subsurfacewebservices.cpp | |
parent | c1495f08ec68a067fc7d1e73445aab20b375f7e1 (diff) | |
download | subsurface-c2ff2be210cba14386d8b468dd3e6fde5f4abc40.tar.gz |
subsurfacewebservices.cpp: make sure 'changed' is not unused
Make sure 'changed' in SubsurfaceWebServices::buttonClicked()
is not unused even if NO_MARBLE is defined.
It appears to be used only in the #ifndef NO_MARBLE branch.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index c0866aa35..d66d3653b 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -411,6 +411,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button) struct dive *d; struct dive_site *ds; bool changed = false; + (void)changed; clear_table(&gps_location_table); QByteArray url = tr("Webservice").toLocal8Bit(); parse_xml_buffer(url.data(), downloadedData.data(), downloadedData.length(), &gps_location_table, NULL); |