[UCRT] Silence warning about returning noreturn function

This commit is contained in:
Timo Kreuzer 2024-10-14 11:14:34 +02:00
parent a21a206c89
commit 2cc6699f0d
2 changed files with 5 additions and 0 deletions

View file

@ -276,6 +276,7 @@ extern "C" __declspec(noreturn) void __cdecl _invalid_parameter_noinfo_noreturn(
EXCEPTION_NONCONTINUABLE);
TerminateProcess(GetCurrentProcess(), STATUS_INVALID_CRUNTIME_PARAMETER);
UNREACHABLE;
}
#else // ^^^ (_M_IX86 || _M_X64) && !_UCRT_ENCLAVE_BUILD ^^^ // vvv Newer Architectures vvv //

View file

@ -285,21 +285,25 @@ extern "C" int __cdecl _is_c_termination_complete()
extern "C" void __cdecl exit(int const return_code)
{
common_exit(return_code, _crt_exit_full_cleanup, _crt_exit_terminate_process);
UNREACHABLE;
}
extern "C" void __cdecl _exit(int const return_code)
{
common_exit(return_code, _crt_exit_no_cleanup, _crt_exit_terminate_process);
UNREACHABLE;
}
extern "C" void __cdecl _Exit(int const return_code)
{
common_exit(return_code, _crt_exit_no_cleanup, _crt_exit_terminate_process);
UNREACHABLE;
}
extern "C" void __cdecl quick_exit(int const return_code)
{
common_exit(return_code, _crt_exit_quick_cleanup, _crt_exit_terminate_process);
UNREACHABLE;
}
extern "C" void __cdecl _cexit()