Skip to content

Commit

Permalink
Fix -Wold-style-definition compiler warning (#312)
Browse files Browse the repository at this point in the history
`int f()` in C is a variadic function (taking any number of arguments),
not a function taking no arguments, like it is in C++.
  • Loading branch information
bnoordhuis authored Aug 23, 2024
1 parent d7754a9 commit a9103b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mini_racer_loader/mini_racer_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static void *_dln_load(const char *file)
rb_raise(rb_eLoadError, "%s", error);
}

__attribute__((visibility("default"))) void Init_mini_racer_loader()
__attribute__((visibility("default"))) void Init_mini_racer_loader(void)
{
VALUE mMiniRacer = rb_define_module("MiniRacer");
VALUE mLoader = rb_define_module_under(mMiniRacer, "Loader");
Expand Down

0 comments on commit a9103b1

Please sign in to comment.