mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +00:00
[UCRT] Silence warning about returning noreturn function
This commit is contained in:
parent
a21a206c89
commit
2cc6699f0d
2 changed files with 5 additions and 0 deletions
|
@ -276,6 +276,7 @@ extern "C" __declspec(noreturn) void __cdecl _invalid_parameter_noinfo_noreturn(
|
||||||
EXCEPTION_NONCONTINUABLE);
|
EXCEPTION_NONCONTINUABLE);
|
||||||
|
|
||||||
TerminateProcess(GetCurrentProcess(), STATUS_INVALID_CRUNTIME_PARAMETER);
|
TerminateProcess(GetCurrentProcess(), STATUS_INVALID_CRUNTIME_PARAMETER);
|
||||||
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // ^^^ (_M_IX86 || _M_X64) && !_UCRT_ENCLAVE_BUILD ^^^ // vvv Newer Architectures vvv //
|
#else // ^^^ (_M_IX86 || _M_X64) && !_UCRT_ENCLAVE_BUILD ^^^ // vvv Newer Architectures vvv //
|
||||||
|
|
|
@ -285,21 +285,25 @@ extern "C" int __cdecl _is_c_termination_complete()
|
||||||
extern "C" void __cdecl exit(int const return_code)
|
extern "C" void __cdecl exit(int const return_code)
|
||||||
{
|
{
|
||||||
common_exit(return_code, _crt_exit_full_cleanup, _crt_exit_terminate_process);
|
common_exit(return_code, _crt_exit_full_cleanup, _crt_exit_terminate_process);
|
||||||
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __cdecl _exit(int const return_code)
|
extern "C" void __cdecl _exit(int const return_code)
|
||||||
{
|
{
|
||||||
common_exit(return_code, _crt_exit_no_cleanup, _crt_exit_terminate_process);
|
common_exit(return_code, _crt_exit_no_cleanup, _crt_exit_terminate_process);
|
||||||
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __cdecl _Exit(int const return_code)
|
extern "C" void __cdecl _Exit(int const return_code)
|
||||||
{
|
{
|
||||||
common_exit(return_code, _crt_exit_no_cleanup, _crt_exit_terminate_process);
|
common_exit(return_code, _crt_exit_no_cleanup, _crt_exit_terminate_process);
|
||||||
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __cdecl quick_exit(int const return_code)
|
extern "C" void __cdecl quick_exit(int const return_code)
|
||||||
{
|
{
|
||||||
common_exit(return_code, _crt_exit_quick_cleanup, _crt_exit_terminate_process);
|
common_exit(return_code, _crt_exit_quick_cleanup, _crt_exit_terminate_process);
|
||||||
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __cdecl _cexit()
|
extern "C" void __cdecl _cexit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue