summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-10-16 18:43:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-10-16 18:43:21 +0000
commit78e1b766412138639765560ca379489ded0446bf (patch)
tree392db4a063f6bfc6b578502c2a6eb22191bfb4bd /op.c
parent7c89f822cb10ced0749b67c4d8a890f65ee4c463 (diff)
downloadperl-78e1b766412138639765560ca379489ded0446bf.tar.gz
prototype() didn't warn when used in void context.
p4raw-id: //depot/perl@18020
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index c589fcefd4..4d1f7a25c6 100644
--- a/op.c
+++ b/op.c
@@ -725,6 +725,7 @@ Perl_scalarvoid(pTHX_ OP *o)
case OP_GGRNAM:
case OP_GGRGID:
case OP_GETLOGIN:
+ case OP_PROTOTYPE:
func_ops:
if (!(o->op_private & (OPpLVAL_INTRO|OPpOUR_INTRO)))
useless = OP_DESC(o);