Skip to content

Commit

Permalink
Use code annotations instead of model for Coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
theonlypwner committed Dec 31, 2015
1 parent a0cc587 commit 28ab7c0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions source/src/_coverity_model.cpp

This file was deleted.

1 change: 1 addition & 0 deletions source/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void quit() // normal exit
exit(EXIT_SUCCESS);
}

// coverity[+kill]
void fatal(const char *s, ...) // failure exit
{
static int errors = 0;
Expand Down
1 change: 1 addition & 0 deletions source/src/master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ ENetSocket serversocket = ENET_SOCKET_NULL;
time_t starttime;
enet_uint32 servtime = 0;

// coverity[+kill]
void fatal(const char *fmt, ...)
{
va_list args;
Expand Down
1 change: 1 addition & 0 deletions source/src/protos.h
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ extern const char *modestr(int gamemode, int mutators, bool acronyms = false);
extern const char *voteerrorstr(int n);
extern const char *mmfullname(int n);
extern void modecheck(int &mode, int &muts, int trying = 0);
// coverity[+kill]
extern void fatal(const char *s, ...);
extern void initserver(bool dedicated, int argc = 0, char **argv = NULL);
extern void cleanupserver();
Expand Down
1 change: 1 addition & 0 deletions source/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5434,6 +5434,7 @@ void initserver(bool dedicated, int argc, char **argv)
#ifdef STANDALONE

void localservertoclient(int chan, uchar *buf, int len, bool demo) {}
// coverity[+kill]
void fatal(const char *s, ...)
{
defvformatstring(msg,s,s);
Expand Down

0 comments on commit 28ab7c0

Please sign in to comment.