summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-08 14:46:12 +0100
committerYves Orton <demerphq@gmail.com>2023-03-18 21:00:54 +0800
commit21b005c93f9d47fdacd6d19b6e4bd297b891ab41 (patch)
tree5cccdf9f6a94eb058ffcd0973e8d2cfcab9e02db /pp_ctl.c
parentd81b4f9331172ed96e5382fe1e1091e9d4b85495 (diff)
downloadperl-21b005c93f9d47fdacd6d19b6e4bd297b891ab41.tar.gz
warnings.pm - add deprecated::dot_in_inc warings category
Instead of using a generic warnings category switch to fine grained control.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index b98c197252..f7e4f055d7 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -4894,7 +4894,7 @@ S_require_file(pTHX_ SV *sv)
/* the complication is to match the logic from doopen_pm() so
* we don't treat do "sda1" as a previously successful "do".
*/
- bool do_warn = namesv && ckWARN_d(WARN_DEPRECATED)
+ bool do_warn = namesv && ckWARN_d(WARN_DEPRECATED__DOT_IN_INC)
&& PerlLIO_stat(name, &st) == 0 && !S_ISDIR(st.st_mode) && !S_ISBLK(st.st_mode)
&& (io = PerlIO_openn(aTHX_ ":", PERL_SCRIPT_MODE, -1, 0, 0, NULL, 1, &sv)) != NULL;
if (io)
@@ -4902,7 +4902,7 @@ S_require_file(pTHX_ SV *sv)
RESTORE_ERRNO;
if (do_warn) {
- Perl_warner(aTHX_ packWARN(WARN_DEPRECATED),
+ Perl_warner(aTHX_ packWARN(WARN_DEPRECATED__DOT_IN_INC),
"do \"%s\" failed, '.' is no longer in @INC; "
"did you mean do \"./%s\"?",
name, name);