s/YYLEX_PARAM/YYLEXPARAM/
[p5sagit/p5-mst-13.2.git] / taint.c
diff --git a/taint.c b/taint.c
index 4c031de..05a1a44 100644 (file)
--- a/taint.c
+++ b/taint.c
@@ -25,8 +25,8 @@ taint_proper(const char *f, char *s)
            ug = " while running with -T switch";
        if (!PL_unsafe)
            croak(f, s, ug);
-       else if (PL_dowarn)
-           warn(f, s, ug);
+       else if (ckWARN(WARN_TAINT))
+           warner(WARN_TAINT, f, s, ug);
     }
 }