summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/digest/digest.c3
-rw-r--r--ext/sdbm/init.c5
-rw-r--r--ext/tcltklib/tcltklib.c1
-rw-r--r--ext/win32ole/win32ole.c2
4 files changed, 7 insertions, 4 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index 0d058bbfd44..a170678cf0c 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -57,7 +57,8 @@ get_digest_base_metadata(klass)
return algo;
}
-
+
+static VALUE rb_digest_base_alloc _((VALUE));
static VALUE
rb_digest_base_alloc(klass)
VALUE klass;
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 81dc59a0803..a2b90438f6f 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -56,10 +56,9 @@ fsdbm_close(obj)
return Qnil;
}
+static VALUE fsdbm_alloc _((VALUE));
static VALUE
-fsdbm_alloc(argc, argv, klass)
- int argc;
- VALUE *argv;
+fsdbm_alloc(klass)
VALUE klass;
{
return Data_Wrap_Struct(klass, 0, free_sdbm, 0);
diff --git a/ext/tcltklib/tcltklib.c b/ext/tcltklib/tcltklib.c
index 5e68f04241c..95abb5a8c10 100644
--- a/ext/tcltklib/tcltklib.c
+++ b/ext/tcltklib/tcltklib.c
@@ -469,6 +469,7 @@ ip_free(ptr)
}
/* create and initialize interpreter */
+static VALUE ip_alloc _((VALUE));
static VALUE
ip_alloc(self)
VALUE self;
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 1eb09e0a5e2..a2744ed8c93 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -715,6 +715,7 @@ ole_set_member(self, dispatch)
return self;
}
+static VALUE fole_s_allocate _((VALUE));
static VALUE
fole_s_allocate(klass)
VALUE klass;
@@ -5071,6 +5072,7 @@ ole_event_free(poleev)
}
}
+static VALUE fev_s_allocate _((VALUE));
static VALUE
fev_s_allocate(klass)
VALUE klass;