mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
add some noreturn annotations
This commit is contained in:
parent
2d54a12615
commit
830d93aa38
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue