From d434a6973e099caea90df5810f0843881cd7aa19 Mon Sep 17 00:00:00 2001 From: eban Date: Wed, 13 Aug 2003 07:13:45 +0000 Subject: [PATCH] * object.c (rb_class_s_alloc): add function prototype to avoid VC++ warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ object.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dd51b18227..4a5d5ae60e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 13 15:58:31 2003 WATANABE Hirofumi + + * object.c (rb_class_s_alloc): add function prototype to avoid VC++ + warning. + Wed Aug 13 13:50:59 2003 NAKAMURA Usaku * ext/Win32API/Win32API.c (Win32API_initialize): should pass some diff --git a/object.c b/object.c index 67528fb925..f95c79be7a 100644 --- a/object.c +++ b/object.c @@ -686,10 +686,10 @@ rb_module_s_alloc(klass) return mod; } +static VALUE rb_class_s_alloc _((VALUE)); static VALUE -rb_class_s_alloc(argc, argv) - int argc; - VALUE *argv; +rb_class_s_alloc(klass) + VALUE klass; { return rb_class_boot(0); }