Suppress -Wunused-function

If no gem was specified, it was warning because `init_mrbgems()` was not used.

ref: #4250
This commit is contained in:
dearblue
2020-11-08 10:52:04 +09:00
parent 8455344bf3
commit 06d231d372
+2
View File
@@ -77,11 +77,13 @@ mrb_open(void)
return mrb;
}
#ifndef DISABLE_GEMS
static void
init_mrbgems(mrb_state *mrb, void *opaque)
{
mrb_init_mrbgems(mrb);
}
#endif
MRB_API mrb_state*
mrb_open_allocf(mrb_allocf f, void *ud)