Shut up returning functions with noreturn attribute warning
This commit is contained in:
parent
b248479376
commit
dd859ae43d
2 changed files with 7 additions and 4 deletions
|
@ -46,8 +46,11 @@ void trap_Print( const char *fmt ) {
|
|||
syscall( CG_PRINT, fmt );
|
||||
}
|
||||
|
||||
void trap_Error( const char *fmt ) {
|
||||
syscall( CG_ERROR, fmt );
|
||||
void trap_Error(const char *fmt)
|
||||
{
|
||||
syscall(CG_ERROR, fmt);
|
||||
// shut up GCC warning about returning functions, because we know better
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int trap_Milliseconds( void ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue