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:
1 parent
69a7ada911
commit
9dc32d55e2
30 files changed
+63
-61
No files matched your search
+1
-11
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user