diff --git a/src/engine/server/databases/sqlite.cpp b/src/engine/server/databases/sqlite.cpp index f2a60c8e8..c5bb95feb 100644 --- a/src/engine/server/databases/sqlite.cpp +++ b/src/engine/server/databases/sqlite.cpp @@ -224,7 +224,7 @@ void CSqliteConnection::BindFloat(int Idx, float Value) // TODO(2020-09-07): remove extern declaration, when all supported systems ship SQLite3 version 3.14 or above #if defined(__GNUC__) - +extern char *sqlite3_expanded_sql(sqlite3_stmt *pStmt) __attribute__((weak)); // NOLINT(readability-redundant-declaration) #endif void CSqliteConnection::Print() diff --git a/src/game/server/ddracechat.cpp b/src/game/server/ddracechat.cpp index 6ada820bc..5f709a4e5 100644 --- a/src/game/server/ddracechat.cpp +++ b/src/game/server/ddracechat.cpp @@ -1294,7 +1294,7 @@ void CGameContext::ConSpecTeam(IConsole::IResult *pResult, void *pUserData) bool CheckClientID(int ClientID) { - return !(ClientID < 0 || ClientID >= MAX_CLIENTS); + return ClientID >= 0 && ClientID < MAX_CLIENTS; } void CGameContext::ConSayTime(IConsole::IResult *pResult, void *pUserData) diff --git a/src/macoslaunch/server.mm b/src/macoslaunch/server.mm index 3dcc60c1a..f42c28632 100644 --- a/src/macoslaunch/server.mm +++ b/src/macoslaunch/server.mm @@ -52,7 +52,7 @@ void runServer() NSBundle *mainBundle = [NSBundle mainBundle]; NSTask *task; task = [[NSTask alloc] init]; - [task setCurrentDirectoryPath: [mainBundle resourcePath]]; + [task setCurrentDirectoryPath: [mainBundle resourcePath]]; // NOLINT(clang-analyzer-nullability.NullablePassedToNonnull) NSArray *arguments = [NSArray new];