Skip to content

Commit c705db2

Browse files
committed
dev: avoid warnings from -Wold-style-definition
1 parent 1c08973 commit c705db2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ext/sqlite3/backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static VALUE pagecount(VALUE self)
150150
return INT2NUM(sqlite3_backup_pagecount(ctx->p));
151151
}
152152

153-
void init_sqlite3_backup()
153+
void init_sqlite3_backup(void)
154154
{
155155
#if 0
156156
VALUE mSqlite3 = rb_define_module("SQLite3");

ext/sqlite3/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ static VALUE rb_sqlite3_open16(VALUE self, VALUE file)
800800
return INT2NUM(status);
801801
}
802802

803-
void init_sqlite3_database()
803+
void init_sqlite3_database(void)
804804
{
805805
#if 0
806806
VALUE mSqlite3 = rb_define_module("SQLite3");

ext/sqlite3/sqlite3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static VALUE threadsafe_p(VALUE UNUSED(klass))
8282
return INT2NUM(sqlite3_threadsafe());
8383
}
8484

85-
void init_sqlite3_constants()
85+
void init_sqlite3_constants(void)
8686
{
8787
VALUE mSqlite3Constants;
8888
VALUE mSqlite3Open;
@@ -128,7 +128,7 @@ void init_sqlite3_constants()
128128
}
129129

130130
RUBY_FUNC_EXPORTED
131-
void Init_sqlite3_native()
131+
void Init_sqlite3_native(void)
132132
{
133133
/*
134134
* SQLite3 is a wrapper around the popular database

ext/sqlite3/statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ static VALUE database_name(VALUE self, VALUE index)
418418

419419
#endif
420420

421-
void init_sqlite3_statement()
421+
void init_sqlite3_statement(void)
422422
{
423423
cSqlite3Statement = rb_define_class_under(mSqlite3, "Statement", rb_cObject);
424424

0 commit comments

Comments
 (0)