[Pcre-svn] [535] code/trunk/src/pcre2_auto_possess.c: Add mi…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [535] code/trunk/src/pcre2_auto_possess.c: Add missing #ifdef SUPPORT_UNICODE to avoid "unused variable" warning.
Revision: 535
          http://www.exim.org/viewvc/pcre2?view=rev&revision=535
Author:   ph10
Date:     2016-06-28 17:19:47 +0100 (Tue, 28 Jun 2016)
Log Message:
-----------
Add missing #ifdef SUPPORT_UNICODE to avoid "unused variable" warning.


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


Modified: code/trunk/src/pcre2_auto_possess.c
===================================================================
--- code/trunk/src/pcre2_auto_possess.c    2016-06-26 16:21:23 UTC (rev 534)
+++ code/trunk/src/pcre2_auto_possess.c    2016-06-28 16:19:47 UTC (rev 535)
@@ -91,6 +91,7 @@
   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 }   /* \X */
 };


+#ifdef SUPPORT_UNICODE
/* This table is used to check whether auto-possessification is possible
between adjacent Unicode property opcodes (OP_PROP and OP_NOTPROP). The
left-hand (repeated) opcode is used to select the row, and the right-hand
@@ -170,6 +171,7 @@
{ ucp_Z, ucp_Z, ucp_C, ucp_Cc }, /* SPACE and PXSPACE, 2nd value redundant */
{ ucp_L, ucp_N, ucp_P, ucp_Po } /* WORD */
};
+#endif /* SUPPORT_UNICODE */