diff options
Diffstat (limited to 'src/sys/sys_main.c')
-rw-r--r-- | src/sys/sys_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c index 8bc5f80f..9e4d6863 100644 --- a/src/sys/sys_main.c +++ b/src/sys/sys_main.c @@ -194,7 +194,7 @@ Sys_Exit Single exit point (regular exit or in case of error) ================= */ -static void Sys_Exit( int exitCode ) +static __attribute__ ((noreturn)) void Sys_Exit( int exitCode ) { CON_Shutdown( ); @@ -352,18 +352,18 @@ void Sys_Error( const char *error, ... ) Q_vsnprintf (string, sizeof(string), error, argptr); va_end (argptr); - CL_Shutdown(string, qtrue); Sys_ErrorDialog( string ); Sys_Exit( 3 ); } +#if 0 /* ================= Sys_Warn ================= */ -void Sys_Warn( char *warning, ... ) +static __attribute__ ((format (printf, 1, 2))) void Sys_Warn( char *warning, ... ) { va_list argptr; char string[1024]; @@ -374,6 +374,7 @@ void Sys_Warn( char *warning, ... ) CON_Print( va( "Warning: %s", string ) ); } +#endif /* ============ |