diff options
-rw-r--r-- | pcre_study.c | 4 | ||||
-rw-r--r-- | pcre_ucd.c | 2 | ||||
-rw-r--r-- | pcre_valid_utf8.c | 3 |
3 files changed, 6 insertions, 3 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. */ @@ -18,7 +18,7 @@ a totally empty module because some compilers barf at that. Instead, just supply small dummy tables. */ #ifndef SUPPORT_UCP -const ucd_record PRIV(ucd_records)[] = {{0,0,0 }}; +const ucd_record PRIV(ucd_records)[] = {{0,0,0,0 }}; const pcre_uint8 PRIV(ucd_stage1)[] = {0}; const pcre_uint16 PRIV(ucd_stage2)[] = {0}; #else 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 */ |