From dd66d8387deb9ced5887b0c883ff8ef046d81125 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 14 Apr 2013 18:33:24 +0200 Subject: remove some redundant exit() calls --- src/qcommon/vm_powerpc.c | 6 +----- src/qcommon/vm_x86.c | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/qcommon') diff --git a/src/qcommon/vm_powerpc.c b/src/qcommon/vm_powerpc.c index 2fde4310..cf7de30f 100644 --- a/src/qcommon/vm_powerpc.c +++ b/src/qcommon/vm_powerpc.c @@ -46,11 +46,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, diff --git a/src/qcommon/vm_x86.c b/src/qcommon/vm_x86.c index 9661d8d3..3650cc8c 100644 --- a/src/qcommon/vm_x86.c +++ b/src/qcommon/vm_x86.c @@ -385,7 +385,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); } /* -- cgit