From 1d04a3b216901671eae0104547715a570b1ff3ab Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 30 Mar 2019 17:48:36 +0100 Subject: Core/Misc: Fix GCC 8 warnings --- src/server/database/Database/MySQLConnection.cpp | 3 +-- src/server/database/Updater/UpdateFetcher.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server/database') diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp index 6022f3b53cc..1943d7ef199 100644 --- a/src/server/database/Database/MySQLConnection.cpp +++ b/src/server/database/Database/MySQLConnection.cpp @@ -513,9 +513,8 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/) mysql_close(GetHandle()); m_Mysql = nullptr; } - - /*no break*/ } + /* 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 db1d23af5fa..0f6fa4a3ba4 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); - /*no break*/ + /* fallthrough */ case MODE_REHASH: UpdateEntry(file, speed); break; -- cgit v1.2.3