summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2006-02-20 18:27:11 -0600
committerSteve Peters <steve@fisharerojo.org>2006-02-24 10:41:53 +0000
commit96a5add60f1f39d38341c09c11f0542e68f782b0 (patch)
tree13f30a43f69671f51be60eec2b59f84e6d4679ca /utf8.c
parent1e7f542f0732947deb78e87eb5c42a3ee9fa9418 (diff)
downloadperl-96a5add60f1f39d38341c09c11f0542e68f782b0.tar.gz
unused context warnings
Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index 1ab15cc29b..e5079cb709 100644
--- a/utf8.c
+++ b/utf8.c
@@ -238,6 +238,7 @@ STRLEN
Perl_is_utf8_char(pTHX_ const U8 *s)
{
const STRLEN len = UTF8SKIP(s);
+ PERL_UNUSED_CONTEXT;
#ifdef IS_UTF8_CHAR
if (IS_UTF8_CHAR_FAST(len))
return IS_UTF8_CHAR(s, len) ? len : 0;
@@ -264,6 +265,7 @@ Perl_is_utf8_string(pTHX_ const U8 *s, STRLEN len)
const U8* x = s;
const U8* send;
+ PERL_UNUSED_CONTEXT;
if (!len)
len = strlen((const char *)s);
send = s + len;
@@ -329,6 +331,7 @@ Perl_is_utf8_string_loclen(pTHX_ const U8 *s, STRLEN len, const U8 **ep, STRLEN
const U8* x = s;
const U8* send;
STRLEN c;
+ PERL_UNUSED_CONTEXT;
if (!len)
len = strlen((const char *)s);
@@ -755,6 +758,7 @@ on the first byte of character or just after the last byte of a character.
U8 *
Perl_utf8_hop(pTHX_ const U8 *s, I32 off)
{
+ PERL_UNUSED_CONTEXT;
/* Note: cannot use UTF8_IS_...() too eagerly here since e.g
* the bitops (especially ~) can create illegal UTF-8.
* In other words: in Perl UTF-8 is not just for Unicode. */
@@ -835,6 +839,7 @@ Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *len, bool *is_utf8)
const U8 *send;
I32 count = 0;
+ PERL_UNUSED_CONTEXT;
if (!*is_utf8)
return (U8 *)start;
@@ -887,6 +892,7 @@ Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *len)
const U8 * const send = s + (*len);
U8 *d;
U8 *dst;
+ PERL_UNUSED_CONTEXT;
Newx(d, (*len) * 2 + 1, U8);
dst = d;