more ATTNORETURN
A recent commit to alloc.c by Keni drew attention to the fact that there are extern prototypes scattered around in various .c files. Those can make use of ATTRNORETURN (non-gcc compilers and C23) the same way the prototypes in extern.h can, and they were overlooked when ATTRNORETURN was first added.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(MICRO) || defined(OS2)
|
||||
void nethack_exit(int) NORETURN;
|
||||
ATTRNORETURN void nethack_exit(int) NORETURN;
|
||||
#else
|
||||
#define nethack_exit exit
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(MICRO) || defined(OS2)
|
||||
void nethack_exit(int) NORETURN;
|
||||
ATTRNORETURN void nethack_exit(int) NORETURN;
|
||||
#else
|
||||
#define nethack_exit exit
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user