From 6dd60cf114701f1ff3526381c0e742c588af2f91 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Mon, 26 Aug 2019 16:06:40 +0900 Subject: st_foreach now free from ANYARGS After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from st_foreach. I strongly believe that this commit should have had come with b0af0592fdd9e9d4e4b863fde006d67ccefeac21, which added extra parameter to st_foreach callbacks. --- marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'marshal.c') diff --git a/marshal.c b/marshal.c index b6de65023c..0d7cbc169c 100644 --- a/marshal.c +++ b/marshal.c @@ -112,7 +112,7 @@ static VALUE rb_marshal_dump_limited(VALUE obj, VALUE port, int limit); static VALUE rb_marshal_load_with_proc(VALUE port, VALUE proc); static int -mark_marshal_compat_i(st_data_t key, st_data_t value) +mark_marshal_compat_i(st_data_t key, st_data_t value, st_data_t _) { marshal_compat_t *p = (marshal_compat_t *)value; rb_gc_mark(p->newclass); -- cgit v1.2.3