summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-07 22:40:55 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-07 22:40:55 +0200
commitc2ff2be210cba14386d8b468dd3e6fde5f4abc40 (patch)
tree40ae2156718611b33db7e46a69d8e9641cb8e29e /desktop-widgets/subsurfacewebservices.cpp
parentc1495f08ec68a067fc7d1e73445aab20b375f7e1 (diff)
downloadsubsurface-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.cpp1
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);