1
0
Fork 0
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:
nobu 2012-12-14 18:59:12 +00:00
parent 13b20230f9
commit 688f3ec67d

View file

@ -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;