From 688f3ec67db55e8b7e063175672e8ac64b011ed7 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 14 Dec 2012 18:59:12 +0000 Subject: [PATCH] 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 --- vm_trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm_trace.c b/vm_trace.c index f5260149b3..9b8ec40b33 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -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;