Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warnings no inline ruby debug #3107

Merged
merged 2 commits into from May 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion array.c
Expand Up @@ -5179,7 +5179,7 @@ static VALUE
flatten(VALUE ary, int level)
{
long i;
VALUE stack, result, tmp, elt, vmemo;
VALUE stack, result, tmp = 0, elt, vmemo;
st_table *memo;
st_data_t id;

Expand Down
3 changes: 2 additions & 1 deletion ext/stringio/stringio.c
Expand Up @@ -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];
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion vm_insnhelper.h
Expand Up @@ -140,7 +140,7 @@ CC_SET_FASTPATH(const struct rb_callcache *cc, vm_call_handler func, bool enable

#if VM_CHECK_MODE > 0
#define SETUP_CANARY() \
VALUE *canary; \
VALUE *canary = 0; \
if (leaf) { \
canary = GET_SP(); \
SET_SV(vm_stack_canary); \
Expand Down