From 476b581506bb057c30031a6e1b6a407b79115a0e Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 11:23:51 +0200 Subject: [PATCH] Fix warning: this statement may fall through /libretroshare/src/rsserver/p3serverconfig.cc:292: warning: this statement may fall through [-Wimplicit-fallthrough=] if (mPeerMgr->getFriendCount(true, false) > MIN_BASIC_FRIENDS) /libretroshare/src/rsserver/p3serverconfig.cc:297: here case RSCONFIG_USER_LEVEL_BASIC: /libretroshare/src/rsserver/p3serverconfig.cc:300: warning: this statement may fall through [-Wimplicit-fallthrough=] if (mPeerMgr->haveOnceConnected()) /libretroshare/src/rsserver/p3serverconfig.cc:306: here case RSCONFIG_USER_LEVEL_CASUAL: --- libretroshare/src/rsserver/p3serverconfig.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/p3serverconfig.cc b/libretroshare/src/rsserver/p3serverconfig.cc index fcfd94276..1d74573d6 100644 --- a/libretroshare/src/rsserver/p3serverconfig.cc +++ b/libretroshare/src/rsserver/p3serverconfig.cc @@ -294,6 +294,7 @@ uint32_t p3ServerConfig::getUserLevel() userLevel = RSCONFIG_USER_LEVEL_BASIC; } } + /* fallthrough */ case RSCONFIG_USER_LEVEL_BASIC: { /* check that we have some lastConnect > 0 */ @@ -302,7 +303,7 @@ uint32_t p3ServerConfig::getUserLevel() userLevel = RSCONFIG_USER_LEVEL_CASUAL; } } - + /* fallthrough */ case RSCONFIG_USER_LEVEL_CASUAL: case RSCONFIG_USER_LEVEL_POWER: