From 4161891b426df2b7fb10ace5b40c1ed5b7656afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Herczeg?= Date: Fri, 6 Mar 2015 12:49:18 +0000 Subject: [PATCH] Fix compiler errors when JIT is not enabled. --- src/pcre2_jit_misc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pcre2_jit_misc.c b/src/pcre2_jit_misc.c index 2d8088c..f5b5128 100644 --- a/src/pcre2_jit_misc.c +++ b/src/pcre2_jit_misc.c @@ -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 */ } /*************************************************