diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-02 06:34:18 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-02 06:34:18 +0000 |
| commit | 1dae83ef328e649d9c38e72447011021c6ca3898 (patch) | |
| tree | 8cf355431a6d88269ecac247b3b7b5c1d27351c8 /thread.c | |
| parent | e98c58ee2700b46f2f32f81bbd7c8bf8f27370ac (diff) | |
| download | ruby-1dae83ef328e649d9c38e72447011021c6ca3898.tar.gz ruby-1dae83ef328e649d9c38e72447011021c6ca3898.tar.xz ruby-1dae83ef328e649d9c38e72447011021c6ca3898.zip | |
* 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
Diffstat (limited to 'thread.c')
| -rw-r--r-- | thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |
