1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/io-console] Suppress yet another warning on Windows

https://github.com/ruby/io-console/commit/4e17c90788
This commit is contained in:
Nobuyoshi Nakada 2019-09-10 17:27:07 +09:00
parent b5ab918d0c
commit 83ef58f264

View file

@ -298,6 +298,7 @@ ttymode(VALUE io, VALUE (*func)(VALUE), VALUE farg, void (*setter)(conmode *, vo
return result;
}
#if !defined _WIN32
struct ttymode_callback_args {
VALUE (*func)(VALUE, VALUE);
VALUE io;
@ -311,7 +312,6 @@ ttymode_callback(VALUE args)
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)
{