mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-16 09:57:19 -05:00
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:
This commit is contained in:
parent
7bd7c57ff9
commit
476b581506
@ -294,6 +294,7 @@ uint32_t p3ServerConfig::getUserLevel()
|
|||||||
userLevel = RSCONFIG_USER_LEVEL_BASIC;
|
userLevel = RSCONFIG_USER_LEVEL_BASIC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case RSCONFIG_USER_LEVEL_BASIC:
|
case RSCONFIG_USER_LEVEL_BASIC:
|
||||||
{
|
{
|
||||||
/* check that we have some lastConnect > 0 */
|
/* check that we have some lastConnect > 0 */
|
||||||
@ -302,7 +303,7 @@ uint32_t p3ServerConfig::getUserLevel()
|
|||||||
userLevel = RSCONFIG_USER_LEVEL_CASUAL;
|
userLevel = RSCONFIG_USER_LEVEL_CASUAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case RSCONFIG_USER_LEVEL_CASUAL:
|
case RSCONFIG_USER_LEVEL_CASUAL:
|
||||||
case RSCONFIG_USER_LEVEL_POWER:
|
case RSCONFIG_USER_LEVEL_POWER:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user