* eval_method.ci (rb_get_alloc_func): cast to suppress a warning.
* eval_method.ci (remove_method): local variable to be initialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cecd39bee2
commit
62096ef690
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 26 15:01:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Wed Sep 26 08:36:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
|
* Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
|
||||||
|
@ -204,7 +204,7 @@ rb_get_alloc_func(VALUE klass)
|
|||||||
if (nd_type(n) != NODE_METHOD) return 0;
|
if (nd_type(n) != NODE_METHOD) return 0;
|
||||||
n = n->nd_body;
|
n = n->nd_body;
|
||||||
if (nd_type(n) != NODE_CFUNC) return 0;
|
if (nd_type(n) != NODE_CFUNC) return 0;
|
||||||
return n->nd_cfnc;
|
return (rb_alloc_func_t)n->nd_cfnc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NODE *
|
static NODE *
|
||||||
@ -292,7 +292,7 @@ static void
|
|||||||
remove_method(VALUE klass, ID mid)
|
remove_method(VALUE klass, ID mid)
|
||||||
{
|
{
|
||||||
st_data_t data;
|
st_data_t data;
|
||||||
NODE *body;
|
NODE *body = 0;
|
||||||
|
|
||||||
if (klass == rb_cObject) {
|
if (klass == rb_cObject) {
|
||||||
rb_secure(4);
|
rb_secure(4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user