From 8cc817b5a34a93719d2cf698243b086bf1dfd377 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 14 Apr 2013 18:33:24 +0200 Subject: [PATCH] remove some redundant exit() calls --- code/qcommon/vm_powerpc.c | 6 +----- code/qcommon/vm_x86.c | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/code/qcommon/vm_powerpc.c b/code/qcommon/vm_powerpc.c index 60eb6bb6..a2eed8b3 100644 --- a/code/qcommon/vm_powerpc.c +++ b/code/qcommon/vm_powerpc.c @@ -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, diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c index c2838586..b896883d 100644 --- a/code/qcommon/vm_x86.c +++ b/code/qcommon/vm_x86.c @@ -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); } /*