summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-31 21:41:09 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-01 13:49:23 -0700
commit0cfa64bfe0ab570e7b2ddddfdad71f8341a5e6e1 (patch)
treea0fe001febf5c9da8aa815e54367e47e742c96da /utf8.c
parent1a89bb6c2ba7b1d0b44a5a627009274b3cde11a1 (diff)
downloadperl-0cfa64bfe0ab570e7b2ddddfdad71f8341a5e6e1.tar.gz
utf8.c: Don't do redundant test
The test here for WARN_UTF8 is redundant, as only if one of the other three warning categories is enabled will anything actually be output.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 3b4aa8fa70..7eb4374ded 100644
--- a/utf8.c
+++ b/utf8.c
@@ -107,7 +107,7 @@ Perl_uvoffuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
/* The first problematic code point is the first surrogate */
if (uv >= UNICODE_SURROGATE_FIRST
- && ckWARN4_d(WARN_UTF8, WARN_SURROGATE, WARN_NON_UNICODE, WARN_NONCHAR))
+ && ckWARN3_d(WARN_SURROGATE, WARN_NON_UNICODE, WARN_NONCHAR))
{
if (UNICODE_IS_SURROGATE(uv)) {
if (flags & UNICODE_WARN_SURROGATE) {