summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-07 11:21:29 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-07 11:21:29 +0000
commitf5df47822a9b069b4d7a24dd025c8f27786c45fa (patch)
treec04ed3cda48b415c7948a939a3368d2c322da5dd /op.c
parent10a3d64ebfb9fbd83a25907c9ad1c5709db66e15 (diff)
downloadperl-f5df47822a9b069b4d7a24dd025c8f27786c45fa.tar.gz
Let's remove the grep in void context warning.
p4raw-id: //depot/perl@32888
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/op.c b/op.c
index 212ecddc99..a732aa42d7 100644
--- a/op.c
+++ b/op.c
@@ -970,7 +970,6 @@ Perl_scalarvoid(pTHX_ OP *o)
case OP_ANONLIST:
case OP_ANONHASH:
case OP_SORT:
- case OP_GREPWHILE:
case OP_REVERSE:
case OP_RANGE:
case OP_FLIP:
@@ -1011,8 +1010,7 @@ Perl_scalarvoid(pTHX_ OP *o)
func_ops:
if (!(o->op_private & (OPpLVAL_INTRO|OPpOUR_INTRO)))
/* Otherwise it's "Useless use of grep iterator" */
- useless = (o->op_type == OP_GREPWHILE) ? "grep"
- : OP_DESC(o);
+ useless = OP_DESC(o);
break;
case OP_NOT: