summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-12 16:39:02 +0100
committerNicholas Clark <nick@ccl4.org>2009-10-12 16:39:02 +0100
commit9b38784150c0aca5746105b5f00bfc653322bcd1 (patch)
tree48457d0d7c2cf65438740ec90bf3382203837dba /taint.c
parenta2a5de9516c1b256b060768ac6dad252a3aa3be7 (diff)
downloadperl-9b38784150c0aca5746105b5f00bfc653322bcd1.tar.gz
Add Perl_ck_warner_d(), which combines Perl_ckwarn_d() and Perl_warner().
Replace ckWARN_d{,2,3,4}() && Perl_warner() with it, which trades reduced code size for 1 more function call if warnings are not enabled.
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/taint.c b/taint.c
index 719cce3110..62c171fc23 100644
--- a/taint.c
+++ b/taint.c
@@ -66,8 +66,7 @@ Perl_taint_proper(pTHX_ const char *f, const char *const s)
else
ug = " while running with -T switch";
if (PL_unsafe || PL_taint_warn) {
- if(ckWARN_d(WARN_TAINT))
- Perl_warner(aTHX_ packWARN(WARN_TAINT), f, s, ug);
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_TAINT), f, s, ug);
}
else {
Perl_croak(aTHX_ f, s, ug);