diff options
author | /dev/humancontroller <devhc@example.com> | 2013-04-14 18:33:24 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-05-31 23:10:54 +0100 |
commit | 0832c673e66c2051a4be13015293e5ac90e3648f (patch) | |
tree | 9973e09d522f1d85e46121cddfcb60eca1ddccb6 | |
parent | e402f6bcfd0d7aff795f320842d251accbb065b1 (diff) |
add some noreturn annotations
-rw-r--r-- | src/qcommon/common.c | 2 | ||||
-rw-r--r-- | src/qcommon/vm_x86.c | 2 | ||||
-rw-r--r-- | src/renderercommon/tr_image_jpg.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 41a8f5b0..2b92bbd1 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -2244,7 +2244,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/src/qcommon/vm_x86.c b/src/qcommon/vm_x86.c index 21b69699..9661d8d3 100644 --- a/src/qcommon/vm_x86.c +++ b/src/qcommon/vm_x86.c @@ -382,7 +382,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/src/renderercommon/tr_image_jpg.c b/src/renderercommon/tr_image_jpg.c index 39108000..931a4f9b 100644 --- a/src/renderercommon/tr_image_jpg.c +++ b/src/renderercommon/tr_image_jpg.c @@ -43,7 +43,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]; |