ruby-changes:29486
From: ko1 <ko1@a...>
Date: Fri, 21 Jun 2013 21:13:07 +0900 (JST)
Subject: [ruby-changes:29486] ko1:r41538 (trunk): * gc.c (allocate_sorted_heaps): remove unused variable `add'.
ko1 2013-06-21 21:12:57 +0900 (Fri, 21 Jun 2013) New Revision: 41538 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41538 Log: * gc.c (allocate_sorted_heaps): remove unused variable `add'. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41537) +++ ChangeLog (revision 41538) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Jun 21 21:11:53 2013 Koichi Sasada <ko1@a...> + + * gc.c (allocate_sorted_heaps): remove unused variable `add'. + Fri Jun 21 20:50:32 2013 Koichi Sasada <ko1@a...> * include/ruby/ruby.h: constify RArray::as::ary and RArray::heap::ptr. Index: gc.c =================================================================== --- gc.c (revision 41537) +++ gc.c (revision 41538) @@ -669,10 +669,9 @@ static void https://github.com/ruby/ruby/blob/trunk/gc.c#L669 allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length) { struct heaps_header **p; - size_t size, add; + size_t size; size = next_heaps_length*sizeof(struct heaps_header *); - add = next_heaps_length - heaps_used; if (heaps_used > 0) { p = (struct heaps_header **)realloc(objspace->heap.sorted, size); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/