summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@covalent.net>2001-08-01 11:34:44 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-02 00:48:55 +0000
commitd04f2e46d5d204ddae789f27eea5861425e8f34e (patch)
tree68488c36c605b1db8d1dd5fa169d440552a4d3d4 /op.c
parenta07e034d5b7121cacfc8c4af9b2736c3d2ab2af3 (diff)
downloadperl-d04f2e46d5d204ddae789f27eea5861425e8f34e.tar.gz
Re: [PATCH pp_ctl.c] proposed Windows safe-guard
Message-ID: <Pine.LNX.4.21.0108011830080.8991-100000@mako.covalent.net> p4raw-id: //depot/perl@11545
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/op.c b/op.c
index c542cbf0bd..bda2ae7ac8 100644
--- a/op.c
+++ b/op.c
@@ -3279,7 +3279,10 @@ Perl_utilize(pTHX_ int aver, I32 floor, OP *version, OP *id, OP *arg)
newSVOP(OP_METHOD_NAMED, 0, meth)));
}
- if (ckWARN(WARN_MISC) && imop && SvPOK(packsv = ((SVOP*)id)->op_sv)) {
+ if (ckWARN(WARN_MISC) &&
+ imop && (imop != arg) && /* no warning on use 5.0; or explicit () */
+ SvPOK(packsv = ((SVOP*)id)->op_sv))
+ {
/* BEGIN will free the ops, so we need to make a copy */
packlen = SvCUR(packsv);
packname = savepvn(SvPVX(packsv), packlen);