From 1dae83ef328e649d9c38e72447011021c6ca3898 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: http://svn.ruby-lang.org/repos/ruby/trunk@25180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ thread.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3486fdb2f..283c93dec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 2 15:34:15 2009 Nobuyoshi Nakada + + * thread.c (ruby_suppress_tracing): get rid of clobbering by + longjmp. + Fri Oct 2 09:20:35 2009 NAKAMURA Usaku * eval.c (rb_origenviron): remove unused old variable. diff --git a/thread.c b/thread.c index adaaa8ebe..da4cf9cf3 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