[前][次][番号順一覧][スレッド一覧]

ruby-changes:57684

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Mon, 9 Sep 2019 21:28:03 +0900 (JST)
Subject: [ruby-changes:57684] 042c436cd9 (master): static member variables must explictly be initialized

https://git.ruby-lang.org/ruby.git/commit/?id=042c436cd9

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?=
 <shyouhei@r...>
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

diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp
index 51be7ca..c0117b3 100644
--- a/ext/-test-/cxxanyargs/cxxanyargs.cpp
+++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp
@@ -65,6 +65,7 @@ struct test_rb_define_hooked_variable { https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/cxxanyargs.cpp#L65
         return self;
     }
 };
+VALUE test_rb_define_hooked_variable::v = Qundef;
 
 namespace test_rb_iterate {
     VALUE
@@ -247,6 +248,7 @@ struct test_rb_thread_create { https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/cxxanyargs.cpp#L248
         return rb_thread_create(thread, &v); // new
     }
 };
+VALUE test_rb_thread_create::v = Qundef;
 
 namespace test_st_foreach {
     static int
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]