From 408f0a92ef62dfc4145ff9e7f1380937e5535296 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 4 Jun 2010 00:37:36 +0000 Subject: [PATCH] * gc.c (gc_sweep): suppress a warning on VC, again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ gc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 59c8b54e23..c6d531821e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 4 09:37:15 2010 NAKAMURA Usaku + + * gc.c (gc_sweep): suppress a warning on VC, again. + Thu Jun 3 23:34:55 2010 Akinori MUSHA * ext/digest/lib/digest/hmac.rb: Emit a deprecation warning in diff --git a/gc.c b/gc.c index 4fdc86f0a8..ad13e683b2 100644 --- a/gc.c +++ b/gc.c @@ -1939,7 +1939,7 @@ slot_sweep(rb_objspace_t *objspace, struct heaps_slot *sweep_slot) RVALUE *pp; for (pp = deferred_final_list; pp != final; pp = pp->as.free.next) { - RDATA(pp)->dmark = (void (*)())(VALUE)sweep_slot; + RDATA(pp)->dmark = (void (*)(void *))(VALUE)sweep_slot; pp->as.free.flags |= FL_SINGLETON; /* freeing page mark */ } sweep_slot->limit = final_num;