mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Suppress warnings no inline ruby debug (#3107)
* Suppress unused warnings occurred due to -fno-inline * Suppress warning occurred due to RUBY_DEBUG=1
This commit is contained in:
parent
ac395754c7
commit
f4f157fc81
Notes:
git
2020-05-22 13:49:32 +09:00
Merged-By: mrkn <mrkn@ruby-lang.org>
3 changed files with 4 additions and 3 deletions
|
@ -1532,7 +1532,6 @@ strio_read(int argc, VALUE *argv, VALUE self)
|
|||
long len;
|
||||
int binary = 0;
|
||||
|
||||
rb_check_arity(argc, 0, 2);
|
||||
switch (argc) {
|
||||
case 2:
|
||||
str = argv[1];
|
||||
|
@ -1572,6 +1571,8 @@ strio_read(int argc, VALUE *argv, VALUE self)
|
|||
len -= ptr->pos;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
rb_error_arity(argc, 0, 2);
|
||||
}
|
||||
if (NIL_P(str)) {
|
||||
rb_encoding *enc = binary ? rb_ascii8bit_encoding() : get_enc(ptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue