summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-09 02:14:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-09 02:14:52 +0000
commit8864383839cfe0a60582d196b9140fdf116fb30f (patch)
tree8ae599a912dc3679d7738d95f8af4d8ec6941f8f /vm_eval.c
parentb6ed3dce38e6fa54ee328d0df00410f9310ed1b5 (diff)
* vm_eval.c (rb_f_catch): gets rid of issue with gcc 4.4. a patch
from Alexey Froloff in [ruby-core:23398]. [ruby-core:22924] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 5935aaeacc..8c2e10e619 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1222,7 +1222,7 @@ rb_f_catch(int argc, VALUE *argv)
{
VALUE tag;
int state;
- VALUE val = Qnil; /* OK */
+ volatile VALUE val = Qnil; /* OK */
rb_thread_t *th = GET_THREAD();
rb_control_frame_t *saved_cfp = th->cfp;