diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | vm_eval.c | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Sat Feb 28 21:52:37 2009 Tanaka Akira <akr@fsij.org> + + * vm_eval.c (rb_iterate): use volatile to suppress warnings. + + * eval.c (ruby_cleanup): ditto. + Sat Feb 28 20:09:40 2009 Tanaka Akira <akr@fsij.org> * eval_error.c (error_print): use volatile to suppress warnings. @@ -125,7 +125,7 @@ ruby_finalize(void) void rb_thread_stop_timer_thread(void); int -ruby_cleanup(int ex) +ruby_cleanup(volatile int ex) { int state; volatile VALUE errs[2]; @@ -597,7 +597,7 @@ rb_iterate(VALUE (* it_proc) (VALUE), VALUE data1, volatile VALUE retval = Qnil; NODE *node = NEW_IFUNC(bl_proc, data2); rb_thread_t *th = GET_THREAD(); - rb_control_frame_t *cfp = th->cfp; + rb_control_frame_t *volatile cfp = th->cfp; TH_PUSH_TAG(th); state = TH_EXEC_TAG(); |