ruby-changes:31920
From: nobu <ko1@a...>
Date: Thu, 5 Dec 2013 14:26:30 +0900 (JST)
Subject: [ruby-changes:31920] nobu:r43999 (trunk): vm_eval.c: suppress warning
nobu 2013-12-05 14:26:25 +0900 (Thu, 05 Dec 2013) New Revision: 43999 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43999 Log: vm_eval.c: suppress warning * vm_eval.c (rb_catch_obj): add cast to suppress warning by VC. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 43998) +++ vm_eval.c (revision 43999) @@ -1834,7 +1834,7 @@ VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1834 rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data) { int state; - VALUE val = rb_catch_protect(t, func, data, &state); + VALUE val = rb_catch_protect(t, (rb_block_call_func *)func, data, &state); if (state) JUMP_TAG(state); return val; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/