From 25991c51d4866aeef3eeef13c1dc562fff82d7e4 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 8 Mar 2023 14:48:15 +0100 Subject: 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. --- regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regcomp.c') 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)); -- cgit v1.2.1