summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-17 08:28:26 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-17 08:28:26 +0000
commita99e4ac224ca891463a7704e48b83906ece3bb7c (patch)
tree0b2e2f5bd9b49d00679a273084c1a24bc8f48e91 /pp_ctl.c
parent24d3c5181312bc6d6fc2f89a6710968ed97b31dc (diff)
downloadperl-a99e4ac224ca891463a7704e48b83906ece3bb7c.tar.gz
propagate failures in DESTROY() as (optional) warnings
p4raw-id: //depot/perl@2245
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 0f02c662e9..e4b8a739fa 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1253,6 +1253,8 @@ die_where(char *message)
SvGROW(err, SvCUR(err)+sizeof(prefix)+klen);
sv_catpvn(err, prefix, sizeof(prefix)-1);
sv_catpvn(err, message, klen);
+ if (ckWARN(WARN_UNSAFE))
+ warner(WARN_UNSAFE, SvPVX(err));
}
sv_inc(*svp);
}