From d3ce5dbd64b40b027e1e4ddbca16c8405e82cffb Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 5 Dec 2009 02:36:23 +0000 Subject: merges r25180 from trunk into ruby_1_9_1. -- * thread.c (ruby_suppress_tracing): get rid of clobbering by longjmp. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@26000 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 7ad68c289..889d66442 100644 --- a/thread.c +++ b/thread.c @@ -3762,7 +3762,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