Fix compiler errors when JIT is not enabled.
This commit is contained in:
parent
54396a364d
commit
4161891b42
|
@ -52,6 +52,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
void
|
void
|
||||||
PRIV(jit_free_rodata)(void *current, void *allocator_data)
|
PRIV(jit_free_rodata)(void *current, void *allocator_data)
|
||||||
{
|
{
|
||||||
|
#ifndef SUPPORT_JIT
|
||||||
|
(void)current;
|
||||||
|
(void)allocator_data;
|
||||||
|
#else /* SUPPORT_JIT */
|
||||||
void *next;
|
void *next;
|
||||||
|
|
||||||
SLJIT_UNUSED_ARG(allocator_data);
|
SLJIT_UNUSED_ARG(allocator_data);
|
||||||
|
@ -62,6 +66,8 @@ while (current != NULL)
|
||||||
SLJIT_FREE(current, allocator_data);
|
SLJIT_FREE(current, allocator_data);
|
||||||
current = next;
|
current = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* SUPPORT_JIT */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************
|
/*************************************************
|
||||||
|
|
Loading…
Reference in New Issue