Commit 1cdcd00c authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by Hiroshi Mimaki

Remove unused local variable if `MRB_UTF8_STRING` is not set.

Ref #4982 #4983
parent 9f4b5227
...@@ -1446,8 +1446,10 @@ static mrb_value ...@@ -1446,8 +1446,10 @@ static mrb_value
mrb_io_readchar(mrb_state *mrb, mrb_value self) mrb_io_readchar(mrb_state *mrb, mrb_value self)
{ {
mrb_value buf; mrb_value buf;
unsigned char c;
mrb_int len = 1; mrb_int len = 1;
#ifdef MRB_UTF8_STRING
unsigned char c;
#endif
mrb_get_args(mrb, "S", &buf); mrb_get_args(mrb, "S", &buf);
mrb_assert(RSTRING_PTR(buf) > 0); mrb_assert(RSTRING_PTR(buf) > 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment