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:
@@ -29,7 +29,7 @@ static void disclose(int, boolean);
|
||||
static void get_valuables(struct obj *);
|
||||
static void sort_valuables(struct valuable_data *, int);
|
||||
static void artifact_score(struct obj *, boolean, winid);
|
||||
static void really_done(int) NORETURN;
|
||||
ATTRNORETURN static void really_done(int) NORETURN;
|
||||
static void savelife(int);
|
||||
static boolean should_query_disclose_option(int, char *);
|
||||
#ifdef DUMPLOG
|
||||
@@ -38,7 +38,7 @@ static void dump_plines(void);
|
||||
static void dump_everything(int, time_t);
|
||||
|
||||
#if defined(__BEOS__) || defined(MICRO) || defined(OS2) || defined(WIN32)
|
||||
extern void nethack_exit(int) NORETURN;
|
||||
ATTRNORETURN extern void nethack_exit(int) NORETURN;
|
||||
#else
|
||||
#define nethack_exit exit
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user