Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
This commit is contained in:
parent
69a7ada911
commit
9dc32d55e2
30 changed files with 63 additions and 61 deletions
|
@ -260,19 +260,10 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
|
|||
va_list argptr;
|
||||
static int lastErrorTime;
|
||||
static int errorCount;
|
||||
static qboolean calledSysError = qfalse;
|
||||
int currentTime;
|
||||
|
||||
if(com_errorEntered)
|
||||
{
|
||||
if(!calledSysError)
|
||||
{
|
||||
calledSysError = qtrue;
|
||||
Sys_Error("recursive error after: %s", com_errorMessage);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
Sys_Error("recursive error after: %s", com_errorMessage);
|
||||
|
||||
com_errorEntered = qtrue;
|
||||
|
||||
|
@ -348,7 +339,6 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
|
|||
|
||||
Com_Shutdown ();
|
||||
|
||||
calledSysError = qtrue;
|
||||
Sys_Error ("%s", com_errorMessage);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue