Should it be marked noreturn as well in that case? Cory
On Fri, Apr 7, 2023 at 2:04 PM Pali Rohár <[email protected]> wrote: > > Documentation for _amsg_exit says: > Emits a specified runtime error message and then exits your application with > error code 255. > --- > mingw-w64-crt/crt/ucrtbase_compat.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mingw-w64-crt/crt/ucrtbase_compat.c > b/mingw-w64-crt/crt/ucrtbase_compat.c > index 02910ff2f4d8..33eeaff3e05e 100644 > --- a/mingw-w64-crt/crt/ucrtbase_compat.c > +++ b/mingw-w64-crt/crt/ucrtbase_compat.c > @@ -104,6 +104,7 @@ int __cdecl (*__MINGW_IMP_SYMBOL(at_quick_exit))(void > (__cdecl *)(void)) = at_qu > > void __cdecl _amsg_exit(int ret) { > fprintf(stderr, "runtime error %d\n", ret); > + _exit(255); > } > > unsigned int __cdecl _get_output_format(void) > -- > 2.20.1 > > > > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
