aboutsummaryrefslogtreecommitdiff
path: root/src/server/database
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-03-30 17:48:36 +0100
committerjackpoz <giacomopoz@gmail.com>2019-03-31 17:34:28 +0200
commit1d04a3b216901671eae0104547715a570b1ff3ab (patch)
tree6736646c01e731af453241cb00d4fefbb1086d30 /src/server/database
parent4f1f8983a7f304ec11ab1b1306499b09a6b05369 (diff)
Core/Misc: Fix GCC 8 warnings
Diffstat (limited to 'src/server/database')
-rw-r--r--src/server/database/Database/MySQLConnection.cpp3
-rw-r--r--src/server/database/Updater/UpdateFetcher.cpp2
2 files changed, 2 insertions, 3 deletions
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;