ruby-changes:2026
From: ko1@a...
Date: 26 Sep 2007 15:01:59 +0900
Subject: [ruby-changes:2026] nobu - Ruby:r13517 (trunk): * eval_method.ci (rb_get_alloc_func): cast to suppress a warning.
nobu 2007-09-26 15:01:43 +0900 (Wed, 26 Sep 2007) New Revision: 13517 Modified files: trunk/ChangeLog trunk/eval_method.ci Log: * eval_method.ci (rb_get_alloc_func): cast to suppress a warning. * eval_method.ci (remove_method): local variable to be initialized. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13517&r2=13516 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval_method.ci?r1=13517&r2=13516 Index: eval_method.ci =================================================================== --- eval_method.ci (revision 13516) +++ eval_method.ci (revision 13517) @@ -204,7 +204,7 @@ if (nd_type(n) != NODE_METHOD) return 0; n = n->nd_body; if (nd_type(n) != NODE_CFUNC) return 0; - return n->nd_cfnc; + return (rb_alloc_func_t)n->nd_cfnc; } static NODE * @@ -292,7 +292,7 @@ remove_method(VALUE klass, ID mid) { st_data_t data; - NODE *body; + NODE *body = 0; if (klass == rb_cObject) { rb_secure(4); Index: ChangeLog =================================================================== --- ChangeLog (revision 13516) +++ ChangeLog (revision 13517) @@ -1,3 +1,9 @@ +Wed Sep 26 15:01:16 2007 Nobuyoshi Nakada <nobu@r...> + + * eval_method.ci (rb_get_alloc_func): cast to suppress a warning. + + * eval_method.ci (remove_method): local variable to be initialized. + Wed Sep 26 08:36:31 2007 Nobuyoshi Nakada <nobu@r...> * Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml