summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-13 07:13:45 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-13 07:13:45 +0000
commit2b342479f56e852d45ee46df87ea0efdf5d1cffc (patch)
tree523b572e819c79d77f350bfbb79eab7175f7765c
parent7550a5043444d5cb8dab83ace7c8dce07ea4be2d (diff)
downloadruby-2b342479f56e852d45ee46df87ea0efdf5d1cffc.tar.gz
ruby-2b342479f56e852d45ee46df87ea0efdf5d1cffc.tar.xz
ruby-2b342479f56e852d45ee46df87ea0efdf5d1cffc.zip
* object.c (rb_class_s_alloc): add function prototype to avoid VC++
warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--object.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index dd51b1822..4a5d5ae60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 13 15:58:31 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * object.c (rb_class_s_alloc): add function prototype to avoid VC++
+ warning.
+
Wed Aug 13 13:50:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/Win32API/Win32API.c (Win32API_initialize): should pass some
diff --git a/object.c b/object.c
index 67528fb92..f95c79be7 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);
}