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

* vm.c, vm_core.h (rb_vm_stack_to_heap): remove const.

It makes compilations warnings.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-06-18 12:32:57 +00:00
parent 4368104146
commit ef86308a2c
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sat Jun 18 21:32:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm.c, vm_core.h (rb_vm_stack_to_heap): remove const.
It makes compilations warnings.
Sat Jun 18 18:54:15 2011 Koichi Sasada <ko1@atdot.net>
* vm.c, vm_core.h (rb_vm_stack_to_heap): fix "const" place.

2
vm.c
View file

@ -478,7 +478,7 @@ rb_vm_make_env_object(rb_thread_t * th, rb_control_frame_t *cfp)
}
void
rb_vm_stack_to_heap(const rb_thread_t *th)
rb_vm_stack_to_heap(rb_thread_t *th)
{
rb_control_frame_t *cfp = th->cfp;
while ((cfp = rb_vm_get_ruby_level_next_cfp(th, cfp)) != 0) {

View file

@ -660,7 +660,7 @@ int rb_backtrace_each(rb_backtrace_iter_func *iter, void *arg);
rb_control_frame_t *rb_vm_get_ruby_level_next_cfp(rb_thread_t *th, rb_control_frame_t *cfp);
int rb_vm_get_sourceline(const rb_control_frame_t *);
VALUE rb_name_err_mesg_new(VALUE obj, VALUE mesg, VALUE recv, VALUE method);
void rb_vm_stack_to_heap(const rb_thread_t *th);
void rb_vm_stack_to_heap(rb_thread_t *th);
void ruby_thread_init_stack(rb_thread_t *th);
NOINLINE(void rb_gc_save_machine_context(rb_thread_t *));