diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-09-07 18:46:37 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-09-09 21:27:40 +0900 |
commit | 042c436cd9cfaeee7a0d7b8e35bee8dec90e972d (patch) | |
tree | dc4cfc72451b99d761d8bf660c2bb1e5f77be957 | |
parent | 1364217bcdcf128de4586527042035d833349c15 (diff) | |
download | ruby-042c436cd9cfaeee7a0d7b8e35bee8dec90e972d.tar.gz |
static member variables must explictly be initialized
These variables then get their room for storage.
See also https://github.com/ruby/ruby/runs/214042030
-rw-r--r-- | ext/-test-/cxxanyargs/cxxanyargs.cpp | 2 |
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 |