diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/array.c | 2 | ||||
| -rw-r--r-- | src/class.c | 1 | ||||
| -rw-r--r-- | src/codegen.c | 1 | ||||
| -rw-r--r-- | src/variable.c | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/array.c b/src/array.c index ff34ba2c8..4e662d6e4 100644 --- a/src/array.c +++ b/src/array.c @@ -294,7 +294,7 @@ mrb_ary_cmp(mrb_state *mrb, mrb_value ary1) { mrb_value ary2; struct RArray *a1, *a2; - mrb_value r = mrb_nil_value(); + mrb_value r; mrb_int i, len; mrb_get_args(mrb, "o", &ary2); diff --git a/src/class.c b/src/class.c index 8476ffa6c..0e2137941 100644 --- a/src/class.c +++ b/src/class.c @@ -644,7 +644,6 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) *pl = argc-i; if (*pl > 0) { *var = sp; - i = argc; } i = argc; sp += *pl; diff --git a/src/codegen.c b/src/codegen.c index f4617a570..581d13280 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -1004,7 +1004,6 @@ gen_literal_array(codegen_scope *s, node *tree, int sym, int val) tree = tree->cdr; } if (j > 0) { - j = 0; ++i; if (sym) gen_send_intern(s); diff --git a/src/variable.c b/src/variable.c index 4eb428a25..9ffc2ac92 100644 --- a/src/variable.c +++ b/src/variable.c @@ -872,7 +872,7 @@ mrb_vm_const_get(mrb_state *mrb, mrb_sym sym) if (!c) c = mrb->ci->target_class; if (c) { - struct RClass *c2 = c; + struct RClass *c2; mrb_value v; if (c->iv && iv_get(mrb, c->iv, sym, &v)) { |
