1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

static member variables must explictly be initialized

These variables then get their room for storage.

See also https://github.com/ruby/ruby/runs/214042030
This commit is contained in:
卜部昌平 2019-09-07 18:46:37 +09:00
parent 1364217bcd
commit 042c436cd9
Notes: git 2019-09-09 21:28:06 +09:00

View file

@ -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