summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 7ad68c2892..889d664421 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) {