mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Function w32_error
does not return
This commit is contained in:
parent
0cf9197988
commit
3f5b52bfda
Notes:
git
2021-10-04 08:16:12 +09:00
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES;
|
|||
|
||||
static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th);
|
||||
|
||||
RBIMPL_ATTR_NORETURN()
|
||||
static void
|
||||
w32_error(const char *func)
|
||||
{
|
||||
|
@ -49,6 +50,7 @@ w32_error(const char *func)
|
|||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
(LPTSTR) & lpMsgBuf, 0, NULL);
|
||||
rb_bug("%s: %s", func, (char*)lpMsgBuf);
|
||||
UNREACHABLE;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue