summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-09-07 18:46:37 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-09-09 21:27:40 +0900
commit042c436cd9cfaeee7a0d7b8e35bee8dec90e972d (patch)
treedc4cfc72451b99d761d8bf660c2bb1e5f77be957 /ext
parent1364217bcdcf128de4586527042035d833349c15 (diff)
static member variables must explictly be initialized
These variables then get their room for storage. See also https://github.com/ruby/ruby/runs/214042030
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2434
Diffstat (limited to 'ext')
-rw-r--r--ext/-test-/cxxanyargs/cxxanyargs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp
index 51be7ca6d0..c0117b3633 100644
--- a/ext/-test-/cxxanyargs/cxxanyargs.cpp
+++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp
@@ -65,6 +65,7 @@ struct test_rb_define_hooked_variable {
return self;
}
};
+VALUE test_rb_define_hooked_variable::v = Qundef;
namespace test_rb_iterate {
VALUE
@@ -247,6 +248,7 @@ struct test_rb_thread_create {
return rb_thread_create(thread, &v); // new
}
};
+VALUE test_rb_thread_create::v = Qundef;
namespace test_st_foreach {
static int