diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-07 17:55:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-07 18:01:10 +0900 |
commit | 23090cf681cd4f92fdbe4c1bdea50ccf403ea4c6 (patch) | |
tree | ee9b761092ba9fdfd0de581e5012b730374996b7 /spec/ruby | |
parent | f2377e4caafdb74b903c36cf679b78776a3440e2 (diff) | |
download | ruby-23090cf681cd4f92fdbe4c1bdea50ccf403ea4c6.tar.gz |
Suppress an unused function
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/optional/capi/ext/thread_spec.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { } } +#ifndef _WIN32 static VALUE false_result = Qfalse; static VALUE true_result = Qtrue; @@ -153,6 +154,7 @@ static void *new_thread_check(void *args) { return &false_result; } } +#endif static VALUE thread_spec_ruby_native_thread_p_new_thread(VALUE self) { #ifndef _WIN32 |