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 214042030
This commit is contained in:
parent
1364217bcd
commit
042c436cd9
Notes:
git
2019-09-09 21:28:06 +09:00
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,7 @@ struct test_rb_define_hooked_variable {
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
VALUE test_rb_define_hooked_variable::v = Qundef;
|
||||||
|
|
||||||
namespace test_rb_iterate {
|
namespace test_rb_iterate {
|
||||||
VALUE
|
VALUE
|
||||||
|
@ -247,6 +248,7 @@ struct test_rb_thread_create {
|
||||||
return rb_thread_create(thread, &v); // new
|
return rb_thread_create(thread, &v); // new
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
VALUE test_rb_thread_create::v = Qundef;
|
||||||
|
|
||||||
namespace test_st_foreach {
|
namespace test_st_foreach {
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue