diff options
author | Takashi Kokubun <[email protected]> | 2023-03-05 14:15:19 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 23:28:59 -0800 |
commit | 1c267d0723a076d7e22e7b8f7c3360d200a239c3 (patch) | |
tree | cedf1113e5cdf286fefe8bff65eb17375183b009 | |
parent | 823309debc57e3f0a13f089fff821c100f779e21 (diff) |
Workaround USE_MJIT warnings
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7448
-rw-r--r-- | mjit.c | 3 | ||||
-rw-r--r-- | mjit_c.c | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -9,6 +9,9 @@ #include "ruby/internal/config.h" // defines USE_MJIT +// ISO C requires a translation unit to contain at least one declaration +void rb_mjit(void) {} + #if USE_MJIT #include "constant.h" @@ -8,6 +8,9 @@ #include "ruby/internal/config.h" // defines USE_MJIT +// ISO C requires a translation unit to contain at least one declaration +void rb_mjit_c(void) {} + #if USE_MJIT #include "mjit.h" |