mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-24 02:14:43 +08:00
crt: Add noreturn attribute with _amsg_exit
This fixes the following compiler warning ucrtbase_compat.c:105:34: warning: function `_amsg_exit' could be declared with attribute `noreturn' [-Wmissing-noreturn] void __cdecl _amsg_exit(int ret) { ^ Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
parent
0f4a2abd69
commit
a255040fe8
@ -35,7 +35,7 @@
|
||||
// to get rid of the _CRTIMP in headers).
|
||||
int __cdecl __getmainargs(int * _Argc, char *** _Argv, char ***_Env, int _DoWildCard, _startupinfo *_StartInfo);
|
||||
int __cdecl __wgetmainargs(int * _Argc, wchar_t *** _Argv, wchar_t ***_Env, int _DoWildCard, _startupinfo *_StartInfo);
|
||||
void __cdecl _amsg_exit(int ret);
|
||||
void __cdecl __MINGW_ATTRIB_NORETURN _amsg_exit(int ret);
|
||||
unsigned int __cdecl _get_output_format(void);
|
||||
|
||||
int __cdecl __ms_fwprintf(FILE *, const wchar_t *, ...);
|
||||
@ -102,7 +102,7 @@ int __cdecl at_quick_exit(void (__cdecl *func)(void))
|
||||
|
||||
int __cdecl (*__MINGW_IMP_SYMBOL(at_quick_exit))(void (__cdecl *)(void)) = at_quick_exit;
|
||||
|
||||
void __cdecl _amsg_exit(int ret) {
|
||||
void __cdecl __MINGW_ATTRIB_NORETURN _amsg_exit(int ret) {
|
||||
fprintf(stderr, "runtime error %d\n", ret);
|
||||
_exit(255);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user