ruby-changes:57608
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 6 Sep 2019 16:34:41 +0900 (JST)
Subject: [ruby-changes:57608] 7516c48b27 (master): fix Visual Studio compilation error
https://git.ruby-lang.org/ruby.git/commit/?id=7516c48b27 From 7516c48b2744b563a6cb420c23c1ff8bdea72da6 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: Fri, 6 Sep 2019 16:33:30 +0900 Subject: fix Visual Studio compilation error See also https://github.com/ruby/ruby/runs/213964487 diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp index 46f4069..9912a66 100644 --- a/ext/-test-/cxxanyargs/cxxanyargs.cpp +++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp @@ -98,7 +98,7 @@ namespace test_rb_block_call { https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/cxxanyargs.cpp#L98 test(VALUE self) { const ID mid = rb_intern("each"); - const VALUE argv[] = {}; + const VALUE argv[] = { Qundef }; rb_block_call(self, mid, 0, argv, RUBY_METHOD_FUNC(block), self); // old return rb_block_call(self, mid, 0, argv, block, self); // new } diff --git a/include/ruby/backward/cxxanyargs.hpp b/include/ruby/backward/cxxanyargs.hpp index 70191a9..1c36cda 100644 --- a/include/ruby/backward/cxxanyargs.hpp +++ b/include/ruby/backward/cxxanyargs.hpp @@ -84,7 +84,7 @@ rb_define_hooked_variable(const char *q, VALUE *w, type *e, void_type *r) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L84 /// @name Exceptions and tag jumps /// @{ -DEPRECATED_BY(::rb_block_call,) +DEPRECATED_TYPE(("Use rb_block_call instead"),) /// @brief Old way to implement iterators. /// @param[in] q A function that can yield. /// @param[in] w Passed to `q`. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/