build warning for noreturn function that does return
The warning showed up with gcc on msdos (__DJGPP__) end.c: In function 'nh_terminate': end.c:1729:1: warning: 'noreturn' function does return } ^
This commit is contained in:
@@ -42,7 +42,7 @@ static void FDECL(process_options, (int argc, char **argv));
|
||||
static void NDECL(nhusage);
|
||||
|
||||
#if defined(MICRO) || defined(OS2)
|
||||
extern void FDECL(nethack_exit, (int));
|
||||
extern void FDECL(nethack_exit, (int)) NORETURN;
|
||||
#else
|
||||
#define nethack_exit exit
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(MICRO) || defined(OS2)
|
||||
void FDECL(nethack_exit, (int));
|
||||
void FDECL(nethack_exit, (int)) NORETURN;
|
||||
#else
|
||||
#define nethack_exit exit
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user