diff options
| author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-18 20:42:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-18 20:42:28 +0200 |
| commit | 85b5b842ca6c05d4e51081e6c3282940a80f3761 (patch) | |
| tree | 4b5d72c0d163cff0a134fcfe4c50f05b59a46668 /src/server/database | |
| parent | 7032ee0bdb47c995dfd89bce3d5b6fad13ec6d73 (diff) | |
Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs (#25054)
Related: #25006
Diffstat (limited to 'src/server/database')
| -rw-r--r-- | src/server/database/Database/MySQLConnection.cpp | 2 | ||||
| -rw-r--r-- | src/server/database/Updater/UpdateFetcher.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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..."); diff --git a/src/server/database/Updater/UpdateFetcher.cpp b/src/server/database/Updater/UpdateFetcher.cpp index b6387e2d31a..d8f6cafacbc 100644 --- a/src/server/database/Updater/UpdateFetcher.cpp +++ b/src/server/database/Updater/UpdateFetcher.cpp @@ -306,7 +306,7 @@ UpdateResult UpdateFetcher::Update(bool const redundancyChecks, { case MODE_APPLY: speed = Apply(availableQuery.first); - /* fallthrough */ + [[fallthrough]]; case MODE_REHASH: UpdateEntry(file, speed); break; |
