aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gc.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9da34363a1..8321144d0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jun 21 21:11:53 2013 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (allocate_sorted_heaps): remove unused variable `add'.
+
Fri Jun 21 20:50:32 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: constify RArray::as::ary and RArray::heap::ptr.
diff --git a/gc.c b/gc.c
index f9ef0f10bc..ffc37e21af 100644
--- a/gc.c
+++ b/gc.c
@@ -669,10 +669,9 @@ static void
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);