[前][次][番号順一覧][スレッド一覧]

ruby-changes:11083

From: akr <ko1@a...>
Date: Sat, 28 Feb 2009 21:56:40 +0900 (JST)
Subject: [ruby-changes:11083] Ruby:r22678 (trunk): * vm_eval.c (rb_iterate): use volatile to suppress warnings.

akr	2009-02-28 21:56:10 +0900 (Sat, 28 Feb 2009)

  New Revision: 22678

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22678

  Log:
    * vm_eval.c (rb_iterate): use volatile to suppress warnings.
    * eval.c (ruby_cleanup): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/eval.c
    trunk/vm_eval.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22677)
+++ ChangeLog	(revision 22678)
@@ -1,3 +1,9 @@
+Sat Feb 28 21:52:37 2009  Tanaka Akira  <akr@f...>
+
+	* 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@f...>
 
 	* eval_error.c (error_print): use volatile to suppress warnings.
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 22677)
+++ vm_eval.c	(revision 22678)
@@ -597,7 +597,7 @@
     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();
Index: eval.c
===================================================================
--- eval.c	(revision 22677)
+++ eval.c	(revision 22678)
@@ -125,7 +125,7 @@
 void rb_thread_stop_timer_thread(void);
 
 int
-ruby_cleanup(int ex)
+ruby_cleanup(volatile int ex)
 {
     int state;
     volatile VALUE errs[2];

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]