diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-10 17:27:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-10 17:29:11 +0900 |
commit | 83ef58f264964f86e7276fdb146c108cc0d6abc0 (patch) | |
tree | 1a2540c0de931c9df06153fea9e569234a4be823 | |
parent | b5ab918d0c7cdeac8f1b1d45842383ea5413699f (diff) |
[ruby/io-console] Suppress yet another warning on Windows
https://github.com/ruby/io-console/commit/4e17c90788
-rw-r--r-- | ext/io/console/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c index c82817560f..40f1c861e1 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 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) { |