mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
2
array.c
2
array.c
|
@ -5269,7 +5269,7 @@ static VALUE
|
||||||
flatten(VALUE ary, int level)
|
flatten(VALUE ary, int level)
|
||||||
{
|
{
|
||||||
long i;
|
long i;
|
||||||
VALUE stack, result, tmp, elt, vmemo;
|
VALUE stack, result, tmp = 0, elt, vmemo;
|
||||||
st_table *memo;
|
st_table *memo;
|
||||||
st_data_t id;
|
st_data_t id;
|
||||||
|
|
||||||
|
|
|
@ -1532,7 +1532,6 @@ strio_read(int argc, VALUE *argv, VALUE self)
|
||||||
long len;
|
long len;
|
||||||
int binary = 0;
|
int binary = 0;
|
||||||
|
|
||||||
rb_check_arity(argc, 0, 2);
|
|
||||||
switch (argc) {
|
switch (argc) {
|
||||||
case 2:
|
case 2:
|
||||||
str = argv[1];
|
str = argv[1];
|
||||||
|
@ -1572,6 +1571,8 @@ strio_read(int argc, VALUE *argv, VALUE self)
|
||||||
len -= ptr->pos;
|
len -= ptr->pos;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
rb_error_arity(argc, 0, 2);
|
||||||
}
|
}
|
||||||
if (NIL_P(str)) {
|
if (NIL_P(str)) {
|
||||||
rb_encoding *enc = binary ? rb_ascii8bit_encoding() : get_enc(ptr);
|
rb_encoding *enc = binary ? rb_ascii8bit_encoding() : get_enc(ptr);
|
||||||
|
|
|
@ -140,7 +140,7 @@ CC_SET_FASTPATH(const struct rb_callcache *cc, vm_call_handler func, bool enable
|
||||||
|
|
||||||
#if VM_CHECK_MODE > 0
|
#if VM_CHECK_MODE > 0
|
||||||
#define SETUP_CANARY() \
|
#define SETUP_CANARY() \
|
||||||
VALUE *canary; \
|
VALUE *canary = 0; \
|
||||||
if (leaf) { \
|
if (leaf) { \
|
||||||
canary = GET_SP(); \
|
canary = GET_SP(); \
|
||||||
SET_SV(vm_stack_canary); \
|
SET_SV(vm_stack_canary); \
|
||||||
|
|
Loading…
Add table
Reference in a new issue