summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fiddle/closure.h2
-rw-r--r--ext/fiddle/function.h2
-rw-r--r--ext/json/generator/generator.h2
-rw-r--r--ext/json/parser/parser.h2
-rw-r--r--ext/psych/psych_emitter.h2
-rw-r--r--ext/psych/psych_parser.h2
-rw-r--r--ext/tk/stubs.h10
-rw-r--r--ext/tk/tcltklib.c2
-rw-r--r--ext/win32ole/win32ole.h2
-rw-r--r--ext/win32ole/win32ole_error.c3
-rw-r--r--ext/win32ole/win32ole_error.h2
-rw-r--r--ext/win32ole/win32ole_event.c6
-rw-r--r--ext/win32ole/win32ole_event.h2
-rw-r--r--ext/win32ole/win32ole_method.h2
-rw-r--r--ext/win32ole/win32ole_param.h2
-rw-r--r--ext/win32ole/win32ole_record.h2
-rw-r--r--ext/win32ole/win32ole_type.h2
-rw-r--r--ext/win32ole/win32ole_typelib.h2
-rw-r--r--ext/win32ole/win32ole_variable.h2
-rw-r--r--ext/win32ole/win32ole_variant.h2
-rw-r--r--ext/win32ole/win32ole_variant_m.c3
-rw-r--r--ext/win32ole/win32ole_variant_m.h2
22 files changed, 31 insertions, 27 deletions
diff --git a/ext/fiddle/closure.h b/ext/fiddle/closure.h
index 1e870e2..d0a8be6 100644
--- a/ext/fiddle/closure.h
+++ b/ext/fiddle/closure.h
@@ -3,6 +3,6 @@
#include <fiddle.h>
-void Init_fiddle_closure();
+void Init_fiddle_closure(void);
#endif
diff --git a/ext/fiddle/function.h b/ext/fiddle/function.h
index e5465ab..829e592 100644
--- a/ext/fiddle/function.h
+++ b/ext/fiddle/function.h
@@ -3,6 +3,6 @@
#include <fiddle.h>
-void Init_fiddle_function();
+void Init_fiddle_function(void);
#endif
diff --git a/ext/json/generator/generator.h b/ext/json/generator/generator.h
index b58cc4b..db885d4 100644
--- a/ext/json/generator/generator.h
+++ b/ext/json/generator/generator.h
@@ -109,7 +109,7 @@ static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self);
static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self);
static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self);
static void State_free(JSON_Generator_State *state);
-static JSON_Generator_State *State_allocate();
+static JSON_Generator_State *State_allocate(void);
static VALUE cState_s_allocate(VALUE klass);
static VALUE cState_configure(VALUE self, VALUE opts);
static VALUE cState_to_h(VALUE self);
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h
index b192064..d600037 100644
--- a/ext/json/parser/parser.h
+++ b/ext/json/parser/parser.h
@@ -68,7 +68,7 @@ static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *resu
static VALUE convert_encoding(VALUE source);
static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self);
static VALUE cParser_parse(VALUE self);
-static JSON_Parser *JSON_allocate();
+static JSON_Parser *JSON_allocate(void);
static void JSON_mark(JSON_Parser *json);
static void JSON_free(JSON_Parser *json);
static VALUE cJSON_parser_s_allocate(VALUE klass);
diff --git a/ext/psych/psych_emitter.h b/ext/psych/psych_emitter.h
index 560451e..4c1482a 100644
--- a/ext/psych/psych_emitter.h
+++ b/ext/psych/psych_emitter.h
@@ -3,6 +3,6 @@
#include <psych.h>
-void Init_psych_emitter();
+void Init_psych_emitter(void);
#endif
diff --git a/ext/psych/psych_parser.h b/ext/psych/psych_parser.h
index 25e896f..beb3dd0 100644
--- a/ext/psych/psych_parser.h
+++ b/ext/psych/psych_parser.h
@@ -1,6 +1,6 @@
#ifndef PSYCH_PARSER_H
#define PSYCH_PARSER_H
-void Init_psych_parser();
+void Init_psych_parser(void);
#endif
diff --git a/ext/tk/stubs.h b/ext/tk/stubs.h
index 7c913fb..b4a85db 100644
--- a/ext/tk/stubs.h
+++ b/ext/tk/stubs.h
@@ -1,15 +1,15 @@
#include <tcl.h>
extern int ruby_open_tcl_dll(char *);
-extern int ruby_open_tk_dll();
+extern int ruby_open_tk_dll(void);
extern int ruby_open_tcltk_dll(char *);
-extern int tcl_stubs_init_p();
-extern int tk_stubs_init_p();
+extern int tcl_stubs_init_p(void);
+extern int tk_stubs_init_p(void);
extern Tcl_Interp *ruby_tcl_create_ip_and_stubs_init(int*);
-extern int ruby_tcl_stubs_init();
+extern int ruby_tcl_stubs_init(void);
extern int ruby_tk_stubs_init(Tcl_Interp*);
extern int ruby_tk_stubs_safeinit(Tcl_Interp*);
-extern int ruby_tcltk_stubs();
+extern int ruby_tcltk_stubs(void);
/* no error */
#define TCLTK_STUBS_OK (0)
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index 239f07a..413a97d 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -21,7 +21,7 @@
#ifdef HAVE_RB_THREAD_CHECK_TRAP_PENDING
static int rb_thread_critical; /* dummy */
-int rb_thread_check_trap_pending();
+int rb_thread_check_trap_pending(void);
#else
/* use rb_thread_critical on Ruby 1.8.x */
#include "rubysig.h"
diff --git a/ext/win32ole/win32ole.h b/ext/win32ole/win32ole.h
index 880fe86..f51fca1 100644
--- a/ext/win32ole/win32ole.h
+++ b/ext/win32ole/win32ole.h
@@ -135,7 +135,7 @@ VALUE ole_wc2vstr(LPWSTR pw, BOOL isfree);
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
-BOOL ole_initialized();
+BOOL ole_initialized(void);
HRESULT ole_docinfo_from_type(ITypeInfo *pTypeInfo, BSTR *name, BSTR *helpstr, DWORD *helpcontext, BSTR *helpfile);
VALUE ole_typedesc2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails);
VALUE make_inspect(const char *class_name, VALUE detail);
diff --git a/ext/win32ole/win32ole_error.c b/ext/win32ole/win32ole_error.c
index f122b2a..62e69b1 100644
--- a/ext/win32ole/win32ole_error.c
+++ b/ext/win32ole/win32ole_error.c
@@ -61,7 +61,8 @@ ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...)
}
void
-Init_win32ole_error() {
+Init_win32ole_error(void)
+{
/*
* Document-class: WIN32OLERuntimeError
*
diff --git a/ext/win32ole/win32ole_error.h b/ext/win32ole/win32ole_error.h
index aa0a42c..5359646 100644
--- a/ext/win32ole/win32ole_error.h
+++ b/ext/win32ole/win32ole_error.h
@@ -3,6 +3,6 @@
VALUE eWIN32OLERuntimeError;
void ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...);
-void Init_win32ole_error();
+void Init_win32ole_error(void);
#endif
diff --git a/ext/win32ole/win32ole_event.c b/ext/win32ole/win32ole_event.c
index ad9cb3d..2cceae7 100644
--- a/ext/win32ole/win32ole_event.c
+++ b/ext/win32ole/win32ole_event.c
@@ -283,7 +283,8 @@ STDMETHODIMP EVENTSINK_GetIDsOfNames(
}
PIEVENTSINKOBJ
-EVENTSINK_Constructor() {
+EVENTSINK_Constructor(void)
+{
PIEVENTSINKOBJ pEv;
if (!g_IsEventSinkVtblInitialized) {
vtEventSink.QueryInterface=EVENTSINK_QueryInterface;
@@ -976,7 +977,8 @@ fev_initialize(int argc, VALUE *argv, VALUE self)
}
static void
-ole_msg_loop() {
+ole_msg_loop(void)
+{
MSG msg;
while(PeekMessage(&msg,NULL,0,0,PM_REMOVE)) {
TranslateMessage(&msg);
diff --git a/ext/win32ole/win32ole_event.h b/ext/win32ole/win32ole_event.h
index 509be05..f1a5aa2 100644
--- a/ext/win32ole/win32ole_event.h
+++ b/ext/win32ole/win32ole_event.h
@@ -1,6 +1,6 @@
#ifndef WIN32OLE_EVENT_H
#define WIN32OLE_EVENT_H 1
-void Init_win32ole_event();
+void Init_win32ole_event(void);
#endif
diff --git a/ext/win32ole/win32ole_method.h b/ext/win32ole/win32ole_method.h
index 58005dd..7eacb1b 100644
--- a/ext/win32ole/win32ole_method.h
+++ b/ext/win32ole/win32ole_method.h
@@ -11,5 +11,5 @@ VALUE cWIN32OLE_METHOD;
VALUE folemethod_s_allocate(VALUE klass);
VALUE ole_methods_from_typeinfo(ITypeInfo *pTypeInfo, int mask);
VALUE create_win32ole_method(ITypeInfo *pTypeInfo, VALUE name);
-void Init_win32ole_method();
+void Init_win32ole_method(void);
#endif
diff --git a/ext/win32ole/win32ole_param.h b/ext/win32ole/win32ole_param.h
index 24fcdc0..7e2650c 100644
--- a/ext/win32ole/win32ole_param.h
+++ b/ext/win32ole/win32ole_param.h
@@ -2,7 +2,7 @@
#define WIN32OLE_PARAM_H
VALUE create_win32ole_param(ITypeInfo *pTypeInfo, UINT method_index, UINT index, VALUE name);
-void Init_win32ole_param();
+void Init_win32ole_param(void);
#endif
diff --git a/ext/win32ole/win32ole_record.h b/ext/win32ole/win32ole_record.h
index 2f84d10..ea431e9 100644
--- a/ext/win32ole/win32ole_record.h
+++ b/ext/win32ole/win32ole_record.h
@@ -5,6 +5,6 @@ VALUE cWIN32OLE_RECORD;
void ole_rec2variant(VALUE rec, VARIANT *var);
void olerecord_set_ivar(VALUE obj, IRecordInfo *pri, void *prec);
VALUE create_win32ole_record(IRecordInfo *pri, void *prec);
-void Init_win32ole_record();
+void Init_win32ole_record(void);
#endif
diff --git a/ext/win32ole/win32ole_type.h b/ext/win32ole/win32ole_type.h
index 086d36a..a26bf3e 100644
--- a/ext/win32ole/win32ole_type.h
+++ b/ext/win32ole/win32ole_type.h
@@ -4,5 +4,5 @@ VALUE cWIN32OLE_TYPE;
VALUE create_win32ole_type(ITypeInfo *pTypeInfo, VALUE name);
ITypeInfo *itypeinfo(VALUE self);
VALUE ole_type_from_itypeinfo(ITypeInfo *pTypeInfo);
-void Init_win32ole_type();
+void Init_win32ole_type(void);
#endif
diff --git a/ext/win32ole/win32ole_typelib.h b/ext/win32ole/win32ole_typelib.h
index 160ed61..9fc117f 100644
--- a/ext/win32ole/win32ole_typelib.h
+++ b/ext/win32ole/win32ole_typelib.h
@@ -3,7 +3,7 @@
VALUE cWIN32OLE_TYPELIB;
-void Init_win32ole_typelib();
+void Init_win32ole_typelib(void);
ITypeLib * itypelib(VALUE self);
VALUE typelib_file(VALUE ole);
VALUE create_win32ole_typelib(ITypeLib *pTypeLib);
diff --git a/ext/win32ole/win32ole_variable.h b/ext/win32ole/win32ole_variable.h
index dbb27ac..704dc13 100644
--- a/ext/win32ole/win32ole_variable.h
+++ b/ext/win32ole/win32ole_variable.h
@@ -3,6 +3,6 @@
VALUE cWIN32OLE_VARIABLE;
VALUE create_win32ole_variable(ITypeInfo *pTypeInfo, UINT index, VALUE name);
-void Init_win32ole_variable();
+void Init_win32ole_variable(void);
#endif
diff --git a/ext/win32ole/win32ole_variant.h b/ext/win32ole/win32ole_variant.h
index 500a273..d06aa34 100644
--- a/ext/win32ole/win32ole_variant.h
+++ b/ext/win32ole/win32ole_variant.h
@@ -7,7 +7,7 @@ struct olevariantdata {
};
VALUE cWIN32OLE_VARIANT;
-void Init_win32ole_variant();
+void Init_win32ole_variant(void);
#endif
diff --git a/ext/win32ole/win32ole_variant_m.c b/ext/win32ole/win32ole_variant_m.c
index ff05c1d..eb3b0b1 100644
--- a/ext/win32ole/win32ole_variant_m.c
+++ b/ext/win32ole/win32ole_variant_m.c
@@ -1,6 +1,7 @@
#include "win32ole.h"
-void Init_win32ole_variant_m() {
+void Init_win32ole_variant_m(void)
+{
/*
* Document-module: WIN32OLE::VARIANT
*
diff --git a/ext/win32ole/win32ole_variant_m.h b/ext/win32ole/win32ole_variant_m.h
index 56dabc1..afbef30 100644
--- a/ext/win32ole/win32ole_variant_m.h
+++ b/ext/win32ole/win32ole_variant_m.h
@@ -2,6 +2,6 @@
#define WIN32OLE_VARIANT_M_H 1
VALUE mWIN32OLE_VARIANT;
-void Init_win32ole_variant_m();
+void Init_win32ole_variant_m(void);
#endif