diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-01-07 11:21:29 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-01-07 11:21:29 +0000 |
commit | f5df47822a9b069b4d7a24dd025c8f27786c45fa (patch) | |
tree | c04ed3cda48b415c7948a939a3368d2c322da5dd /op.c | |
parent | 10a3d64ebfb9fbd83a25907c9ad1c5709db66e15 (diff) | |
download | perl-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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: |