aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authorxtkoba <69125751+xtkoba@users.noreply.github.com>2021-05-02 14:11:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-04 08:15:52 +0900
commit3f5b52bfda3dff7d7ec0cc1909428c45d26b0d72 (patch)
tree78d54cc43c718f50316094a790bafaf4348af844 /thread_win32.c
parent0cf9197988a72f0defb670a8f03f8427d41c4bec (diff)
downloadruby-3f5b52bfda3dff7d7ec0cc1909428c45d26b0d72.tar.gz
Function `w32_error` does not return
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 392c38c947..026ccc4c60 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -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