From 15bc9c1c3c8f70c7e9a9bb9b961b5d55b9cd8dde Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 13:10:41 +0200 Subject: [PATCH] Fix warning: this statement may fall through /retroshare-gui/src/gui/GetStartedDialog.cpp:122: warning: this statement may fall through [-Wimplicit-fallthrough=] ui.firewallCheckBox->setChecked(true); /retroshare-gui/src/gui/GetStartedDialog.cpp:124: here case RSCONFIG_USER_LEVEL_CASUAL: /retroshare-gui/src/gui/GetStartedDialog.cpp:125: warning: this statement may fall through [-Wimplicit-fallthrough=] ui.connectCheckBox->setChecked(true); /retroshare-gui/src/gui/GetStartedDialog.cpp:127: here case RSCONFIG_USER_LEVEL_BASIC: --- retroshare-gui/src/gui/GetStartedDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/GetStartedDialog.cpp b/retroshare-gui/src/gui/GetStartedDialog.cpp index 6cf6b2593..de2c0b523 100644 --- a/retroshare-gui/src/gui/GetStartedDialog.cpp +++ b/retroshare-gui/src/gui/GetStartedDialog.cpp @@ -120,10 +120,10 @@ void GetStartedDialog::updateFromUserLevel() case RSCONFIG_USER_LEVEL_POWER: case RSCONFIG_USER_LEVEL_OVERRIDE: ui.firewallCheckBox->setChecked(true); - + /* fallthrough */ case RSCONFIG_USER_LEVEL_CASUAL: ui.connectCheckBox->setChecked(true); - + /* fallthrough */ case RSCONFIG_USER_LEVEL_BASIC: ui.addCheckBox->setChecked(true); ui.inviteCheckBox->setChecked(true);