From 85b5b842ca6c05d4e51081e6c3282940a80f3761 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sat, 18 Jul 2020 20:42:28 +0200 Subject: Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs (#25054) Related: #25006 --- src/server/database/Database/MySQLConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/database/Database/MySQLConnection.cpp') diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp index 60596a17c5c..1b38b388536 100644 --- a/src/server/database/Database/MySQLConnection.cpp +++ b/src/server/database/Database/MySQLConnection.cpp @@ -545,8 +545,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..."); -- cgit v1.2.3