diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-16 07:38:40 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-16 07:38:40 +0000 |
commit | 4e13d36561868d78e9e5ff9b24aba67d418c67ed (patch) | |
tree | 07808bdd94888f12e0e1b1a6f52777f213d50b91 /eval.c | |
parent | 9df466b287471d386f962ea41cf49c40f2059c8b (diff) |
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -938,7 +938,7 @@ static void call_trace_func _((char*,NODE*,VALUE,ID,VALUE)); #define SET_CURRENT_SOURCE() (ruby_sourcefile = ruby_current_node->nd_file, \ ruby_sourceline = nd_line(ruby_current_node)) #else -#define SET_CURRENT_SOURCE() 0 +#define SET_CURRENT_SOURCE() do { } while (0) #endif void @@ -2050,14 +2050,14 @@ is_defined(self, node, buf) case NODE_NTH_REF: if (RTEST(rb_reg_nth_defined(node->nd_nth, MATCH_DATA))) { - sprintf(buf, "$%d", node->nd_nth); + sprintf(buf, "$%d", (int)node->nd_nth); return buf; } break; case NODE_BACK_REF: if (RTEST(rb_reg_nth_defined(0, MATCH_DATA))) { - sprintf(buf, "$%c", node->nd_nth); + sprintf(buf, "$%c", (char)node->nd_nth); return buf; } break; @@ -3533,7 +3533,6 @@ static VALUE rb_mod_public_method_defined(mod, mid) VALUE mod, mid; { - VALUE klass; ID id = rb_to_id(mid); int noex; @@ -3548,7 +3547,6 @@ static VALUE rb_mod_private_method_defined(mod, mid) VALUE mod, mid; { - VALUE klass; ID id = rb_to_id(mid); int noex; @@ -3563,7 +3561,6 @@ static VALUE rb_mod_protected_method_defined(mod, mid) VALUE mod, mid; { - VALUE klass; ID id = rb_to_id(mid); int noex; @@ -4444,7 +4441,7 @@ rb_undefined(obj, id, argc, argv, call_status) VALUE obj; ID id; int argc; - VALUE*argv; + const VALUE *argv; int call_status; { VALUE *nargv; @@ -7005,7 +7002,7 @@ method_call(argc, argv, method) VALUE *argv; VALUE method; { - VALUE result; + VALUE result; /* OK */ struct METHOD *data; int state; volatile int safe = ruby_safe_level; |