[前][次][番号順一覧][スレッド一覧]

ruby-changes:68234

From: xtkoba <ko1@a...>
Date: Mon, 4 Oct 2021 08:16:04 +0900 (JST)
Subject: [ruby-changes:68234] 3f5b52bfda (master): Function `w32_error` does not return

https://git.ruby-lang.org/ruby.git/commit/?id=3f5b52bfda

From 3f5b52bfda3dff7d7ec0cc1909428c45d26b0d72 Mon Sep 17 00:00:00 2001
From: xtkoba <69125751+xtkoba@u...>
Date: Sun, 2 May 2021 14:11:28 +0900
Subject: Function `w32_error` does not return

---
 thread_win32.c | 2 ++
 1 file changed, 2 insertions(+)

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; https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L29
 
 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) https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L50
 		      MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
 		      (LPTSTR) & lpMsgBuf, 0, NULL);
     rb_bug("%s: %s", func, (char*)lpMsgBuf);
+    UNREACHABLE;
 }
 
 static int
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]