From 56e358d5f96d30b31f27c0c39b8e2cc41c1f249d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Oct 2009 06:34:18 +0000 Subject: * thread.c (ruby_suppress_tracing): get rid of clobbering by longjmp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index adaaa8ebee..da4cf9cf30 100644 --- a/thread.c +++ b/thread.c @@ -4011,7 +4011,8 @@ VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always) { rb_thread_t *th = GET_THREAD(); - int state, raised, tracing; + int state, tracing; + volatile int raised; VALUE result = Qnil; if ((tracing = th->tracing) != 0 && !always) { -- cgit v1.2.3