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
@ -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);
|
static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th);
|
||||||
|
|
||||||
|
RBIMPL_ATTR_NORETURN()
|
||||||
static void
|
static void
|
||||||
w32_error(const char *func)
|
w32_error(const char *func)
|
||||||
{
|
{
|
||||||
@ -49,6 +50,7 @@ w32_error(const char *func)
|
|||||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||||
(LPTSTR) & lpMsgBuf, 0, NULL);
|
(LPTSTR) & lpMsgBuf, 0, NULL);
|
||||||
rb_bug("%s: %s", func, (char*)lpMsgBuf);
|
rb_bug("%s: %s", func, (char*)lpMsgBuf);
|
||||||
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user