From 042c436cd9cfaeee7a0d7b8e35bee8dec90e972d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Sat, 7 Sep 2019 18:46:37 +0900 Subject: static member variables must explictly be initialized These variables then get their room for storage. See also https://github.com/ruby/ruby/runs/214042030 --- ext/-test-/cxxanyargs/cxxanyargs.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext') 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 -- cgit v1.2.3