vm_trace.c: suppress warning
* vm_trace.c (exec_hooks): suppress unused-variable warning by RB_UNUSED_VAR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13b20230f9
commit
688f3ec67d
@ -276,7 +276,8 @@ exec_hooks(rb_thread_t *th, rb_hook_list_t *list, const rb_trace_arg_t *trace_ar
|
|||||||
rb_threadptr_set_raised(th);
|
rb_threadptr_set_raised(th);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
rb_thread_t volatile *tmp = th;
|
/* maybe rb_thread_t *volatile? */
|
||||||
|
rb_thread_t volatile *RB_UNUSED_VAR(tmp) = th;
|
||||||
}
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user