summaryrefslogtreecommitdiff
path: root/pcre_valid_utf8.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_valid_utf8.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_valid_utf8.c')
-rw-r--r--pcre_valid_utf8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcre_valid_utf8.c b/pcre_valid_utf8.c
index 7b9d3df..d1e8a55 100644
--- a/pcre_valid_utf8.c
+++ b/pcre_valid_utf8.c
@@ -288,9 +288,10 @@ for (p = string; length-- > 0; p++)
}
}
-#else /* SUPPORT_UTF */
+#else /* Not SUPPORT_UTF */
(void)(string); /* Keep picky compilers happy */
(void)(length);
+(void)(erroroffset);
#endif
return PCRE_UTF8_ERR0; /* This indicates success */