Core/Misc: Fix GCC 8 warnings

(cherry picked from commit 1d04a3b216)
This commit is contained in:
jackpoz
2019-03-30 17:48:36 +01:00
committed by Shauren
parent ad322b2b01
commit 43a41caafb
12 changed files with 19 additions and 14 deletions

View File

@@ -513,6 +513,7 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/)
case CR_SERVER_GONE_ERROR:
case CR_SERVER_LOST:
case CR_SERVER_LOST_EXTENDED:
{
if (m_Mysql)
{
TC_LOG_ERROR("sql.sql", "Lost the connection to the MySQL server!");
@@ -520,7 +521,8 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/)
mysql_close(m_Mysql);
m_Mysql = nullptr;
}
/* fallthrough */
}
/* fallthrough */
case CR_CONN_HOST_ERROR:
{
TC_LOG_INFO("sql.sql", "Attempting to reconnect to the MySQL server...");