From 127a4040aba260ffe24f8e8a77760f4ef833d415 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 9 May 2009 02:14:52 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@23371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 5935aaeac..8c2e10e61 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; -- cgit