ruby-changes:74429
From: Peter <ko1@a...>
Date: Thu, 10 Nov 2022 23:08:38 +0900 (JST)
Subject: [ruby-changes:74429] 68bd1d6855 (master): Fix compiler issues in test on C99
https://git.ruby-lang.org/ruby.git/commit/?id=68bd1d6855 From 68bd1d685579f9ae96f1c8160cf1fd9820e508da Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Thu, 10 Nov 2022 09:07:20 -0500 Subject: Fix compiler issues in test on C99 Fixes the following issue when compiling using C99: ext/-test-/rb_call_super_kw/rb_call_super_kw.c ext/-test-/random/loop.c:16:39: error: extra ';' outside of a function [-Werror,-Wextra-semi] RB_RANDOM_DEFINE_INIT_INT32_FUNC(loop); --- ext/-test-/random/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/-test-/random/loop.c b/ext/-test-/random/loop.c index 805c8e9122..b789ab1d01 100644 --- a/ext/-test-/random/loop.c +++ b/ext/-test-/random/loop.c @@ -13,7 +13,7 @@ static const rb_random_interface_t random_loop_if = { https://github.com/ruby/ruby/blob/trunk/ext/-test-/random/loop.c#L13 RB_RANDOM_INTERFACE_DEFINE_WITH_REAL(loop) }; -RB_RANDOM_DEFINE_INIT_INT32_FUNC(loop); +RB_RANDOM_DEFINE_INIT_INT32_FUNC(loop) static size_t random_loop_memsize(const void *ptr) { -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/