mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Better fixes
This commit is contained in:
parent
827ebf1ce6
commit
5cc8eb979d
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue