Skip to content

Commit

Permalink
static member variables must explictly be initialized
Browse files Browse the repository at this point in the history
These variables then get their room for storage.

See also https://github.com/ruby/ruby/runs/214042030
  • Loading branch information
shyouhei committed Sep 9, 2019
1 parent 1364217 commit 042c436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/-test-/cxxanyargs/cxxanyargs.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 042c436

Please sign in to comment.