[Pcre-svn] [1120] code/trunk: pcre32: Fix unused variable wa…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1120] code/trunk: pcre32: Fix unused variable warnings
Revision: 1120
          http://vcs.pcre.org/viewvc?view=rev&revision=1120
Author:   chpe
Date:     2012-10-16 16:57:38 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: Fix unused variable warnings

Add ifdefs since these variables are unused on pcre32.

Modified Paths:
--------------
    code/trunk/pcre_compile.c
    code/trunk/pcre_jit_compile.c


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-16 15:57:34 UTC (rev 1119)
+++ code/trunk/pcre_compile.c    2012-10-16 15:57:38 UTC (rev 1120)
@@ -3725,7 +3725,9 @@
 #ifdef SUPPORT_UTF
 /* PCRE_UTF[16|32] have the same value as PCRE_UTF8. */
 BOOL utf = (options & PCRE_UTF8) != 0;
+#ifndef COMPILE_PCRE32
 pcre_uchar utf_chars[6];
+#endif
 #else
 BOOL utf = FALSE;
 #endif


Modified: code/trunk/pcre_jit_compile.c
===================================================================
--- code/trunk/pcre_jit_compile.c    2012-10-16 15:57:34 UTC (rev 1119)
+++ code/trunk/pcre_jit_compile.c    2012-10-16 15:57:38 UTC (rev 1120)
@@ -2452,7 +2452,7 @@
 struct sljit_jump *start;
 struct sljit_jump *end = NULL;
 struct sljit_jump *nl = NULL;
-#ifdef SUPPORT_UTF
+#if defined SUPPORT_UTF && !defined COMPILE_PCRE32
 struct sljit_jump *singlechar;
 #endif
 jump_list *newline = NULL;