summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-03-26 17:46:37 +0000
committerDavid Mitchell <davem@iabyn.com>2011-03-26 17:46:37 +0000
commit61a12c31224e292d9731fb0ed802186aaecbd06f (patch)
tree760200b7a44b1b4260ce1cdb06680b5897aafda4 /utf8.c
parentcd7333372204bf77c4d9e8aa00dd7dfed401bf39 (diff)
downloadperl-61a12c31224e292d9731fb0ed802186aaecbd06f.tar.gz
utf8.c: silence compiler warnings
prefer foo("%s", fixedstr) over foo(fixedstr). One day someone might change fixedstr to include '%' characters.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 9d3770d78f..9c2061ddae 100644
--- a/utf8.c
+++ b/utf8.c
@@ -841,7 +841,7 @@ Perl_utf8_length(pTHX_ const U8 *s, const U8 *e)
Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8),
"%s in %s", unees, OP_DESC(PL_op));
else
- Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8), unees);
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8), "%s", unees);
}
return len;
@@ -953,7 +953,7 @@ Perl_bytes_cmp_utf8(pTHX_ const U8 *b, STRLEN blen, const U8 *u, STRLEN ulen)
Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8),
"%s in %s", unees, OP_DESC(PL_op));
else
- Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8), unees);
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8), "%s", unees);
return -2; /* Really want to return undef :-) */
}
} else {