From 830d93aa38dc50d40dccab35689ade70ebd664bc Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 14 Apr 2013 18:33:24 +0200 Subject: [PATCH] add some noreturn annotations --- code/qcommon/common.c | 2 +- code/qcommon/vm_x86.c | 2 +- code/renderercommon/tr_image_jpg.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 7cfd77bd..8dfbde91 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -2248,7 +2248,7 @@ Just throw a fatal error to test error shutdown procedures ============= */ -static void Com_Error_f (void) { +static void __attribute__((__noreturn__)) Com_Error_f (void) { if ( Cmd_Argc() > 1 ) { Com_Error( ERR_DROP, "Testing drop error" ); } else { diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c index be6c66bf..c2838586 100644 --- a/code/qcommon/vm_x86.c +++ b/code/qcommon/vm_x86.c @@ -381,7 +381,7 @@ Error handler for jump/call to invalid instruction number ================= */ -static void ErrJump(void) +static void __attribute__((__noreturn__)) ErrJump(void) { Com_Error(ERR_DROP, "program tried to execute code outside VM"); exit(1); diff --git a/code/renderercommon/tr_image_jpg.c b/code/renderercommon/tr_image_jpg.c index de122337..bd81c048 100644 --- a/code/renderercommon/tr_image_jpg.c +++ b/code/renderercommon/tr_image_jpg.c @@ -42,7 +42,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # endif #endif -static void R_JPGErrorExit(j_common_ptr cinfo) +static void __attribute__((__noreturn__)) R_JPGErrorExit(j_common_ptr cinfo) { char buffer[JMSG_LENGTH_MAX];