diff --git a/.clang-tidy b/.clang-tidy index a08e38ff4..3da516da8 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -11,6 +11,14 @@ Checks: > -*, + bugprone-*, + -bugprone-branch-clone, + -bugprone-incorrect-roundings, + -bugprone-integer-division, + -bugprone-macro-parentheses, + -bugprone-narrowing-conversions, + -bugprone-parent-virtual-call, + -bugprone-unhandled-self-assignment, clang-analyzer-*, -clang-analyzer-optin.cplusplus.UninitializedObject, -clang-analyzer-optin.cplusplus.VirtualCall, diff --git a/src/engine/server/databases/mysql.cpp b/src/engine/server/databases/mysql.cpp index b0e56fd66..598a7da10 100644 --- a/src/engine/server/databases/mysql.cpp +++ b/src/engine/server/databases/mysql.cpp @@ -304,7 +304,7 @@ void CMysqlConnection::GetString(int Col, char *pBuffer, int BufferSize) const int CMysqlConnection::GetBlob(int Col, unsigned char *pBuffer, int BufferSize) const { #if defined(CONF_SQL) - auto Blob = m_pResults->getBlob(Col); + auto *Blob = m_pResults->getBlob(Col); Blob->read((char *)pBuffer, BufferSize); int NumRead = Blob->gcount(); delete Blob;