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:
nhmall
2020-06-08 14:44:29 -04:00
parent 8564ee95b0
commit bb1a0dd60b
4 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ static void FDECL(process_options, (int argc, char **argv));
static void NDECL(nhusage); static void NDECL(nhusage);
#if defined(MICRO) || defined(OS2) #if defined(MICRO) || defined(OS2)
extern void FDECL(nethack_exit, (int)); extern void FDECL(nethack_exit, (int)) NORETURN;
#else #else
#define nethack_exit exit #define nethack_exit exit
#endif #endif

View File

@@ -29,7 +29,7 @@
#endif #endif
#if defined(MICRO) || defined(OS2) #if defined(MICRO) || defined(OS2)
void FDECL(nethack_exit, (int)); void FDECL(nethack_exit, (int)) NORETURN;
#else #else
#define nethack_exit exit #define nethack_exit exit
#endif #endif

View File

@@ -28,7 +28,7 @@ char *FDECL(translate_path_variables, (const char *, char *));
char *NDECL(exename); char *NDECL(exename);
boolean NDECL(fakeconsole); boolean NDECL(fakeconsole);
void NDECL(freefakeconsole); void NDECL(freefakeconsole);
E void FDECL(nethack_exit, (int)); E void FDECL(nethack_exit, (int)) NORETURN;
#if defined(MSWIN_GRAPHICS) #if defined(MSWIN_GRAPHICS)
E void NDECL(mswin_destroy_reg); E void NDECL(mswin_destroy_reg);
#endif #endif

View File

@@ -53,7 +53,7 @@ Version _WIN_32IE Platform/IE
/*#define COMCTL_URL /*#define COMCTL_URL
* "http://www.microsoft.com/msdownload/ieplatform/ie/comctrlx86.asp"*/ * "http://www.microsoft.com/msdownload/ieplatform/ie/comctrlx86.asp"*/
extern void FDECL(nethack_exit, (int)); extern void FDECL(nethack_exit, (int)) NORETURN;
static TCHAR *_get_cmd_arg(TCHAR *pCmdLine); static TCHAR *_get_cmd_arg(TCHAR *pCmdLine);
static HRESULT GetComCtlVersion(LPDWORD pdwMajor, LPDWORD pdwMinor); static HRESULT GetComCtlVersion(LPDWORD pdwMajor, LPDWORD pdwMinor);
BOOL WINAPI BOOL WINAPI