summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-14 18:16:18 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-14 20:07:55 -0800
commitddc3d23f07be7fca9d2ab2651ea35d86340bb5ea (patch)
treebaee758d67e6f973a39d648c96f13c517a82e35c /mg.c
parent6166628574dae40085161a01aa9bde2879fa4106 (diff)
downloadperl-ddc3d23f07be7fca9d2ab2651ea35d86340bb5ea.tar.gz
Make $/=-1 warning default like other dep warnings
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 4524d01eb9..c49b146cd4 100644
--- a/mg.c
+++ b/mg.c
@@ -2791,7 +2791,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
IV val= SvIV(referent);
if (val <= 0) {
tmpsv= &PL_sv_undef;
- Perl_ck_warner(aTHX_ packWARN(WARN_DEPRECATED),
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED),
"Setting $/ to a reference to %s as a form of slurp is deprecated, treating as undef",
SvIV(SvRV(sv)) < 0 ? "a negative integer" : "zero"
);