diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-11-10 09:07:20 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-11-10 09:07:20 -0500 |
commit | 68bd1d685579f9ae96f1c8160cf1fd9820e508da (patch) | |
tree | 9d648187aa7b59ca92b73cb9fc73ea32dbcda1a1 /ext/-test-/random | |
parent | b7e8876704648cee6866591ac1aca7a54faff742 (diff) |
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);
Diffstat (limited to 'ext/-test-/random')
-rw-r--r-- | ext/-test-/random/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { 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) { |