Core/Misc: Fix GCC 8 warnings

(cherry picked from commit 1d04a3b216901671eae0104547715a570b1ff3ab)
This commit is contained in:
jackpoz
2021-11-24 23:40:15 +01:00
committed by Shauren
parent ad322b2b01
commit 43a41caafb
12 changed files with 19 additions and 14 deletions
@@ -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...");