summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-08 14:48:15 +0100
committerYves Orton <demerphq@gmail.com>2023-03-18 21:00:54 +0800
commit25991c51d4866aeef3eeef13c1dc562fff82d7e4 (patch)
tree4977ffb52148777d82aba6cb224720056238c753 /regcomp.c
parent21b005c93f9d47fdacd6d19b6e4bd297b891ab41 (diff)
downloadperl-25991c51d4866aeef3eeef13c1dc562fff82d7e4.tar.gz
warnings.pm - support deprecated::unicode_property_name category
This category is only used in the regex engine, we should be able to disable it specifically, as it seems like we will never actually remove demove support for the things it warns about.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 50f9e6bb6e..f6368d9d03 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -15657,7 +15657,7 @@ S_parse_uniprop_string(pTHX_
if (table_index > MAX_UNI_KEYWORD_INDEX) {
Size_t warning_offset = table_index / MAX_UNI_KEYWORD_INDEX;
table_index %= MAX_UNI_KEYWORD_INDEX;
- Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED),
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED__UNICODE_PROPERTY_NAME),
"Use of '%.*s' in \\p{} or \\P{} is deprecated because: %s",
(int) name_len, name,
get_deprecated_property_msg(warning_offset));