Workaround USE_MJIT warnings
This commit is contained in:
parent
823309debc
commit
1c267d0723
Notes:
git
2023-03-06 07:29:28 +00:00
3
mjit.c
3
mjit.c
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include "ruby/internal/config.h" // defines USE_MJIT
|
#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
|
#if USE_MJIT
|
||||||
|
|
||||||
#include "constant.h"
|
#include "constant.h"
|
||||||
|
3
mjit_c.c
3
mjit_c.c
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
#include "ruby/internal/config.h" // defines USE_MJIT
|
#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
|
#if USE_MJIT
|
||||||
|
|
||||||
#include "mjit.h"
|
#include "mjit.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user