[Pcre-svn] [670] code/trunk: Get rid of unused variable comp…

トップ ページ
このメッセージを削除
著者: Subversion repository
日付:  
To: pcre-svn
題目: [Pcre-svn] [670] code/trunk: Get rid of unused variable compiler warnings when UTF-8 not supported.
Revision: 670
          http://vcs.pcre.org/viewvc?view=rev&revision=670
Author:   ph10
Date:     2011-08-23 12:16:56 +0100 (Tue, 23 Aug 2011)


Log Message:
-----------
Get rid of unused variable compiler warnings when UTF-8 not supported.

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


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2011-08-23 09:56:11 UTC (rev 669)
+++ code/trunk/pcre_compile.c    2011-08-23 11:16:56 UTC (rev 670)
@@ -3092,7 +3092,6 @@
 uschar utf8_char[6];
 #else
 BOOL utf8 = FALSE;
-uschar *utf8_char = NULL;
 #endif


#ifdef PCRE_DEBUG

Modified: code/trunk/pcre_jit_compile.c
===================================================================
--- code/trunk/pcre_jit_compile.c    2011-08-23 09:56:11 UTC (rev 669)
+++ code/trunk/pcre_jit_compile.c    2011-08-23 11:16:56 UTC (rev 670)
@@ -2009,7 +2009,9 @@
 {
 DEFINE_COMPILER;
 struct sljit_jump *beginend;
+#ifdef SUPPORT_UTF8
 struct sljit_jump *jump;
+#endif


SLJIT_ASSERT(ctype_word == 0x10);

@@ -2751,9 +2753,9 @@
int length;
unsigned int c, oc, bit;
compare_context context;
-struct sljit_label *label;
struct sljit_jump *jump[4];
#ifdef SUPPORT_UTF8
+struct sljit_label *label;
#ifdef SUPPORT_UCP
uschar propdata[5];
#endif