diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-28 22:31:00 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-28 22:34:01 +0900 |
| commit | 7277682cfbabcf2eb518339508043e96e59b5a99 (patch) | |
| tree | 7efa0c0a1fed464465696aeaf235c6366fca1bbd | |
| parent | 0f229bfbbf4fe5a8b7faf802750bda60096b9409 (diff) | |
| download | mruby-7277682cfbabcf2eb518339508043e96e59b5a99.tar.gz mruby-7277682cfbabcf2eb518339508043e96e59b5a99.zip | |
Remove unused local variable if `MRB_UTF8_STRING` is not set.
Ref #4982 #4983
| -rw-r--r-- | mrbgems/mruby-io/src/io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/src/io.c b/mrbgems/mruby-io/src/io.c index 8d215e781..57f4025d6 100644 --- a/mrbgems/mruby-io/src/io.c +++ b/mrbgems/mruby-io/src/io.c @@ -1487,8 +1487,10 @@ static mrb_value mrb_io_readchar(mrb_state *mrb, mrb_value self) { mrb_value buf; - unsigned char c; mrb_int len = 1; +#ifdef MRB_UTF8_STRING + unsigned char c; +#endif mrb_get_args(mrb, "S", &buf); mrb_assert(RSTRING_PTR(buf) > 0); |
