1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_eval.c (rb_iterate): use volatile to suppress warnings.

* eval.c (ruby_cleanup): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-28 12:56:10 +00:00
parent cfe9dcb886
commit 3888bfecf2
3 changed files with 8 additions and 2 deletions

View file

@ -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> Sat Feb 28 20:09:40 2009 Tanaka Akira <akr@fsij.org>
* eval_error.c (error_print): use volatile to suppress warnings. * eval_error.c (error_print): use volatile to suppress warnings.

2
eval.c
View file

@ -125,7 +125,7 @@ ruby_finalize(void)
void rb_thread_stop_timer_thread(void); void rb_thread_stop_timer_thread(void);
int int
ruby_cleanup(int ex) ruby_cleanup(volatile int ex)
{ {
int state; int state;
volatile VALUE errs[2]; volatile VALUE errs[2];

View file

@ -597,7 +597,7 @@ rb_iterate(VALUE (* it_proc) (VALUE), VALUE data1,
volatile VALUE retval = Qnil; volatile VALUE retval = Qnil;
NODE *node = NEW_IFUNC(bl_proc, data2); NODE *node = NEW_IFUNC(bl_proc, data2);
rb_thread_t *th = GET_THREAD(); 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); TH_PUSH_TAG(th);
state = TH_EXEC_TAG(); state = TH_EXEC_TAG();