ruby-changes:26333
From: nobu <ko1@a...>
Date: Sat, 15 Dec 2012 03:59:21 +0900 (JST)
Subject: [ruby-changes:26333] nobu:r38384 (trunk): vm_trace.c: suppress warning
nobu 2012-12-15 03:59:12 +0900 (Sat, 15 Dec 2012) New Revision: 38384 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38384 Log: vm_trace.c: suppress warning * vm_trace.c (exec_hooks): suppress unused-variable warning by RB_UNUSED_VAR(). Modified files: trunk/vm_trace.c Index: vm_trace.c =================================================================== --- vm_trace.c (revision 38383) +++ vm_trace.c (revision 38384) @@ -276,7 +276,8 @@ exec_hooks(rb_thread_t *th, rb_hook_list https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L276 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/