add some noreturn annotations

This commit is contained in:
/dev/humancontroller 2013-04-14 18:33:24 +02:00 committed by Zack Middleton
parent 2d54a12615
commit 830d93aa38
3 changed files with 3 additions and 3 deletions

View file

@ -2248,7 +2248,7 @@ Just throw a fatal error to
test error shutdown procedures test error shutdown procedures
============= =============
*/ */
static void Com_Error_f (void) { static void __attribute__((__noreturn__)) Com_Error_f (void) {
if ( Cmd_Argc() > 1 ) { if ( Cmd_Argc() > 1 ) {
Com_Error( ERR_DROP, "Testing drop error" ); Com_Error( ERR_DROP, "Testing drop error" );
} else { } else {

View file

@ -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"); Com_Error(ERR_DROP, "program tried to execute code outside VM");
exit(1); exit(1);

View file

@ -42,7 +42,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# endif # endif
#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]; char buffer[JMSG_LENGTH_MAX];