[Pcre-svn] [216] code/trunk/src/pcre2_jit_misc.c: Fix compil…

トップ ページ
このメッセージを削除
著者: Subversion repository
日付:  
To: pcre-svn
題目: [Pcre-svn] [216] code/trunk/src/pcre2_jit_misc.c: Fix compiler errors when JIT is not enabled.
Revision: 216
          http://www.exim.org/viewvc/pcre2?view=rev&revision=216
Author:   zherczeg
Date:     2015-03-06 12:49:18 +0000 (Fri, 06 Mar 2015)


Log Message:
-----------
Fix compiler errors when JIT is not enabled.

Modified Paths:
--------------
    code/trunk/src/pcre2_jit_misc.c


Modified: code/trunk/src/pcre2_jit_misc.c
===================================================================
--- code/trunk/src/pcre2_jit_misc.c    2015-03-06 11:57:06 UTC (rev 215)
+++ code/trunk/src/pcre2_jit_misc.c    2015-03-06 12:49:18 UTC (rev 216)
@@ -52,6 +52,10 @@
 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 @@
SLJIT_FREE(current, allocator_data);
current = next;
}
+
+#endif /* SUPPORT_JIT */
}

/*************************************************