aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorD G Turner2017-01-10 06:27:09 +0000
committerD G Turner2017-01-10 06:27:09 +0000
commit2ab092740719e7420901ae5b20af748db2ef4b22 (patch)
tree6459f846a9faf0499e3d740e0f8739c75a4e7a3d /gui
parentb7d963e214a6c3a3d3fa7e627078f3ee9bc697ec (diff)
downloadscummvm-rg350-2ab092740719e7420901ae5b20af748db2ef4b22.tar.gz
scummvm-rg350-2ab092740719e7420901ae5b20af748db2ef4b22.tar.bz2
scummvm-rg350-2ab092740719e7420901ae5b20af748db2ef4b22.zip
GUI: Suppress Unused Variable Warning For Some Build Configurations.
This fix is not totally clean as it spuriously uses the serverLabelPosition variable in one case of the preprocessor ifdef configuration, but with the current structure, this is a simple hack to fix. A better solution would be to rewrite some of these functions to remove some of the preprocessor usage if possible.
Diffstat (limited to 'gui')
-rw-r--r--gui/options.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 3f6fc5aa2c..371a949c35 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -2120,8 +2120,10 @@ void GlobalOptionsDialog::setupCloudTab() {
#else // USE_SDL_NET
if (_runServerButton)
_runServerButton->setVisible(false);
- if (_serverInfoLabel)
+ if (_serverInfoLabel) {
+ _serverInfoLabel->setPos(_serverInfoLabel->getRelX(), serverLabelPosition); // Prevent compiler warning from serverLabelPosition being unused.
_serverInfoLabel->setVisible(false);
+ }
if (_rootPathButton)
_rootPathButton->setVisible(false);
if (_rootPath)