diff options
author | David Mitchell <davem@iabyn.com> | 2011-03-26 17:46:37 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-03-26 17:46:37 +0000 |
commit | 61a12c31224e292d9731fb0ed802186aaecbd06f (patch) | |
tree | 760200b7a44b1b4260ce1cdb06680b5897aafda4 /utf8.c | |
parent | cd7333372204bf77c4d9e8aa00dd7dfed401bf39 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |