mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove unused local variable if MRB_UTF8_STRING is not set.
Ref #4982 #4983
This commit is contained in:
committed by
Hiroshi Mimaki
parent
9f4b5227fe
commit
1cdcd00cc0
@@ -1446,8 +1446,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);
|
||||
|
||||
Reference in New Issue
Block a user