Skip to content

Commit

Permalink
remove some redundant exit() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
/dev/humancontroller authored and zturtleman committed May 30, 2013
1 parent 830d93a commit 8cc817b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions code/qcommon/vm_powerpc.c
Expand Up @@ -45,11 +45,7 @@ static clock_t time_total_vm = 0;
#endif

/* exit() won't be called but use it because it is marked with noreturn */
#define DIE( reason ) \
do { \
Com_Error(ERR_DROP, "vm_powerpc compiler error: " reason); \
exit(1); \
} while(0)
#define DIE( reason ) Com_Error( ERR_DROP, "vm_powerpc compiler error: " reason )

/*
* vm_powerpc uses large quantities of memory during compilation,
Expand Down
1 change: 0 additions & 1 deletion code/qcommon/vm_x86.c
Expand Up @@ -384,7 +384,6 @@ Error handler for jump/call to invalid instruction number
static void __attribute__((__noreturn__)) ErrJump(void)
{
Com_Error(ERR_DROP, "program tried to execute code outside VM");
exit(1);
}

/*
Expand Down

0 comments on commit 8cc817b

Please sign in to comment.