summaryrefslogtreecommitdiff
path: root/pcre_compile.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-12-06 17:11:44 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-12-06 17:11:44 +0000
commitf858acaa28833742f9b2ada7642d8776b98f0689 (patch)
tree935429650029b60f9c98528217adc6ea7a991e9a /pcre_compile.c
parent27304543723ca5af9f2da68fc9395e2a134054f2 (diff)
downloadpcre-f858acaa28833742f9b2ada7642d8776b98f0689.tar.gz
Fix internal error for XCLASS in 16/32-bit non-UCP versions with heap
recursion, and get rid of some compiler warnings when UCP is not configured. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1411 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r--pcre_compile.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/pcre_compile.c b/pcre_compile.c
index df84322..f872694 100644
--- a/pcre_compile.c
+++ b/pcre_compile.c
@@ -2860,11 +2860,16 @@ get_chr_property_list(const pcre_uchar *code, BOOL utf,
const pcre_uint8 *fcc, pcre_uint32 *list)
{
pcre_uchar c = *code;
+pcre_uchar base;
const pcre_uchar *end;
-const pcre_uint32 *clist_src;
-pcre_uint32 *clist_dest;
pcre_uint32 chr;
-pcre_uchar base;
+
+#ifdef SUPPORT_UCP
+pcre_uint32 *clist_dest;
+const pcre_uint32 *clist_src;
+#else
+utf = utf; /* Suppress "unused parameter" compiler warning */
+#endif
list[0] = c;
list[1] = FALSE;