mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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_thread_t volatile *tmp = th;
|
||||
/* maybe rb_thread_t *volatile? */
|
||||
rb_thread_t volatile *RB_UNUSED_VAR(tmp) = th;
|
||||
}
|
||||
|
||||
return state;
|
||||
|
|
Loading…
Reference in a new issue