summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-23 12:50:38 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-24 01:45:28 -0800
commit703227f59cc3b14a9efa961724fa73bb85bb0a78 (patch)
treed641966f866db0eb3990a09c0e90c0cbe792afe2 /op.c
parentd31021d22e76a02635b33b5504e52db88adfc5f0 (diff)
downloadperl-703227f59cc3b14a9efa961724fa73bb85bb0a78.tar.gz
__SUB__ should warn in void context
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 e1cae252a3..2fbf4bd604 100644
--- a/op.c
+++ b/op.c
@@ -1114,6 +1114,7 @@ Perl_scalarvoid(pTHX_ OP *o)
case OP_GGRGID:
case OP_GETLOGIN:
case OP_PROTOTYPE:
+ case OP_RUNCV:
func_ops:
if (!(o->op_private & (OPpLVAL_INTRO|OPpOUR_INTRO)))
/* Otherwise it's "Useless use of grep iterator" */