ruby-changes:71668
From: Nobuyoshi <ko1@a...>
Date: Thu, 7 Apr 2022 19:07:50 +0900 (JST)
Subject: [ruby-changes:71668] 23090cf681 (master): Suppress an unused function
https://git.ruby-lang.org/ruby.git/commit/?id=23090cf681 From 23090cf681cd4f92fdbe4c1bdea50ccf403ea4c6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 7 Apr 2022 17:55:51 +0900 Subject: Suppress an unused function --- spec/ruby/optional/capi/ext/thread_spec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c index bab5fcc211..80e9392488 100644 --- a/spec/ruby/optional/capi/ext/thread_spec.c +++ b/spec/ruby/optional/capi/ext/thread_spec.c @@ -143,6 +143,7 @@ static VALUE thread_spec_ruby_native_thread_p(VALUE self) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/thread_spec.c#L143 } } +#ifndef _WIN32 static VALUE false_result = Qfalse; static VALUE true_result = Qtrue; @@ -153,6 +154,7 @@ static void *new_thread_check(void *args) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/thread_spec.c#L154 return &false_result; } } +#endif static VALUE thread_spec_ruby_native_thread_p_new_thread(VALUE self) { #ifndef _WIN32 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/