diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-07-18 14:56:57 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 22:30:51 +0000 |
commit | 61d3cdbb34ed7ebaa9a9a3c4f13595488b80c8f5 (patch) | |
tree | d44aabf9275f27eacbf6b877eed878a4ae3ee671 /src/qcommon/common.c | |
parent | 2e4f58b4422995f703e51aa92a7e49d0d0664f00 (diff) |
Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
Diffstat (limited to 'src/qcommon/common.c')
-rw-r--r-- | src/qcommon/common.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 6b61e98a..0a4e7eba 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -256,19 +256,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; @@ -344,7 +335,6 @@ void QDECL Com_Error( int code, const char *fmt, ... ) { Com_Shutdown (); - calledSysError = qtrue; Sys_Error ("%s", com_errorMessage); } |