i_system: mark I_Quit() and I_Error() with GCC's 'noreturn' attribute

Thanks @turol for the tip.
This commit is contained in:
Fabian Greffrath 2018-11-06 15:43:44 +01:00
parent 62571c3de6
commit dac0cda28d
2 changed files with 4 additions and 2 deletions

View file

@ -67,11 +67,13 @@
#define PRINTF_ATTR(fmt, first) __attribute__((format(printf, fmt, first)))
#define PRINTF_ARG_ATTR(x) __attribute__((format_arg(x)))
#define NORETURN __attribute__((noreturn))
#else
#define PACKEDATTR
#define PRINTF_ATTR(fmt, first)
#define PRINTF_ARG_ATTR(x)
#define NORETURN
#endif
#ifdef __WATCOMC__

View file

@ -50,9 +50,9 @@ ticcmd_t* I_BaseTiccmd (void);
// Called by M_Responder when quit is selected.
// Clean exit, displays sell blurb.
void I_Quit (void);
void I_Quit (void) NORETURN;
void I_Error (const char *error, ...) PRINTF_ATTR(1, 2);
void I_Error (const char *error, ...) NORETURN PRINTF_ATTR(1, 2);
void I_Tactile (int on, int off, int total);