Browse files

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

Thanks @turol for the tip.
  • Loading branch information...
fabiangreffrath committed Nov 6, 2018
1 parent 62571c3 commit dac0cda28d9dfb1e3f46b29e6f501f7259c98eda
Showing with 4 additions and 2 deletions.
  1. +2 −0 src/doomtype.h
  2. +2 −2 src/i_system.h
@@ -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))
#define PRINTF_ATTR(fmt, first)
#define PRINTF_ARG_ATTR(x)
#define NORETURN
#ifdef __WATCOMC__
@@ -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);

0 comments on commit dac0cda

Please sign in to comment.