summaryrefslogtreecommitdiff
path: root/pcre_study.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-08 16:05:38 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-08 16:05:38 +0000
commit640564bfeb0860032d98439dfa9f5585af59a09e (patch)
tree067cde583dc6419d2f5e512eec3dc1483d9954f3 /pcre_study.c
parent62e0b387d87565e1d188d744ef724352229151ec (diff)
downloadpcre-640564bfeb0860032d98439dfa9f5585af59a09e.tar.gz
Get rid of compiler warnings for unused variables and a missing initializer
when UTF support is not configured. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1032 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r--pcre_study.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcre_study.c b/pcre_study.c
index c85ff88..0359e45 100644
--- a/pcre_study.c
+++ b/pcre_study.c
@@ -564,9 +564,11 @@ if (utf && c > 127)
(void)PRIV(ord2utf)(c, buff);
SET_BIT(buff[0]);
}
-#endif
+#endif /* Not SUPPORT_UCP */
return p;
}
+#else /* Not SUPPORT_UTF */
+(void)(utf); /* Stops warning for unused parameter */
#endif
/* Not UTF-8 mode, or character is less than 127. */