Fix compiler errors when JIT is not enabled.

This commit is contained in:
Zoltán Herczeg 2015-03-06 12:49:18 +00:00
parent 54396a364d
commit 4161891b42
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,10 @@ POSSIBILITY OF SUCH DAMAGE.
void
PRIV(jit_free_rodata)(void *current, void *allocator_data)
{
#ifndef SUPPORT_JIT
(void)current;
(void)allocator_data;
#else /* SUPPORT_JIT */
void *next;
SLJIT_UNUSED_ARG(allocator_data);
@ -62,6 +66,8 @@ while (current != NULL)
SLJIT_FREE(current, allocator_data);
current = next;
}
#endif /* SUPPORT_JIT */
}
/*************************************************