Better fixes

This commit is contained in:
Dennis Felsing 2022-01-26 11:01:11 +01:00
parent 827ebf1ce6
commit 5cc8eb979d
3 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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)

View file

@ -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];