* vm.c (vm_backtrace_each), vm_eval.c (rb_catch_obj): suppress
warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e207a3912c
commit
b32e8a5911
2
vm.c
2
vm.c
@ -710,7 +710,7 @@ vm_backtrace_each(rb_thread_t *th, int lev, void (*init)(void *), rb_backtrace_i
|
|||||||
{
|
{
|
||||||
const rb_control_frame_t *limit_cfp = th->cfp;
|
const rb_control_frame_t *limit_cfp = th->cfp;
|
||||||
const rb_control_frame_t *cfp = (void *)(th->stack + th->stack_size);
|
const rb_control_frame_t *cfp = (void *)(th->stack + th->stack_size);
|
||||||
VALUE file = Qnil, *aryp = arg;
|
VALUE file = Qnil;
|
||||||
int line_no = 0;
|
int line_no = 0;
|
||||||
|
|
||||||
cfp -= 2;
|
cfp -= 2;
|
||||||
|
@ -1566,7 +1566,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
|||||||
static VALUE
|
static VALUE
|
||||||
rb_f_caller(int argc, VALUE *argv)
|
rb_f_caller(int argc, VALUE *argv)
|
||||||
{
|
{
|
||||||
VALUE level, ary;
|
VALUE level;
|
||||||
int lev;
|
int lev;
|
||||||
|
|
||||||
rb_scan_args(argc, argv, "01", &level);
|
rb_scan_args(argc, argv, "01", &level);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user