summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-25 16:20:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-25 16:20:19 +0000
commit1dbad523dc291b9627b38bb8a90cb8baa1d2b369 (patch)
tree30e8c90f63e0f23a8e3e8d6a62af60f803f08893 /perl.c
parent7c9e965c652c539b7064f0b192c92dbee8a21bcc (diff)
downloadperl-1dbad523dc291b9627b38bb8a90cb8baa1d2b369.tar.gz
Make -t equal -tw.
p4raw-id: //depot/perl@13884
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index d75b20dff7..50e7aa1bcb 100644
--- a/perl.c
+++ b/perl.c
@@ -1099,8 +1099,10 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
goto reswitch;
break;
- case 't':
- PL_taint_warn = TRUE;
+ case 't':
+ PL_taint_warn = TRUE;
+ if (! (PL_dowarn & G_WARN_ALL_MASK))
+ PL_dowarn |= G_WARN_ON;
case 'T':
PL_tainting = TRUE;
s++;