From aa1da2e47c69302f9bdb2ab4990e81d87bbcaf1f Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 15 Dec 2017 06:10:19 +0000 Subject: wait: avoid passing unnecessary args to rb_funcall The extra arg is unnecessary and causes errors on some systems (at least clang 5.0.0 on OpenBSD) under Ruby 2.5.0dev. Note: this may be a regression in Ruby 2.5.0dev itself and might need to be fixed upstream, as other gems may also break. cf. https://bogomips.org/kgio-public/20171215053434.GT7579@jeremyevans.local/t/ Acked-by: Eric Wong [ew: commit message] --- ext/kgio/wait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/kgio/wait.c b/ext/kgio/wait.c index 7bdf0a1..fa2fb4a 100644 --- a/ext/kgio/wait.c +++ b/ext/kgio/wait.c @@ -92,12 +92,12 @@ static VALUE kgio_wait_writable(int argc, VALUE *argv, VALUE self) VALUE kgio_call_wait_writable(VALUE io) { - return rb_funcall(io, id_wait_wr, 0, 0); + return rb_funcall(io, id_wait_wr, 0); } VALUE kgio_call_wait_readable(VALUE io) { - return rb_funcall(io, id_wait_rd, 0, 0); + return rb_funcall(io, id_wait_rd, 0); } void init_kgio_wait(void) -- cgit v1.2.3-24-ge0c7