ruby-changes:57710
From: Nobuyoshi <ko1@a...>
Date: Tue, 10 Sep 2019 17:30:35 +0900 (JST)
Subject: [ruby-changes:57710] 83ef58f264 (master): [ruby/io-console] Suppress yet another warning on Windows
https://git.ruby-lang.org/ruby.git/commit/?id=83ef58f264 From 83ef58f264964f86e7276fdb146c108cc0d6abc0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 10 Sep 2019 17:27:07 +0900 Subject: [ruby/io-console] Suppress yet another warning on Windows https://github.com/ruby/io-console/commit/4e17c90788 diff --git a/ext/io/console/console.c b/ext/io/console/console.c index c828175..40f1c86 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -298,6 +298,7 @@ ttymode(VALUE io, VALUE (*func)(VALUE), VALUE farg, void (*setter)(conmode *, vo https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L298 return result; } +#if !defined _WIN32 struct ttymode_callback_args { VALUE (*func)(VALUE, VALUE); VALUE io; @@ -311,7 +312,6 @@ ttymode_callback(VALUE args) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L312 return argp->func(argp->io, argp->farg); } -#if !defined _WIN32 static VALUE ttymode_with_io(VALUE io, VALUE (*func)(VALUE, VALUE), VALUE farg, void (*setter)(conmode *, void *), void *arg) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/