diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2001-11-19 14:26:45 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-19 14:09:34 +0000 |
commit | a801c63c4c283fdf8af1d9fbd7d3d89096ee73f6 (patch) | |
tree | c124764c6ddf3ba2f477431fccf785bcbb723b15 /op.c | |
parent | a16a9fa3134789d190f80e1f78e4ef69ba73acca (diff) | |
download | perl-a801c63c4c283fdf8af1d9fbd7d3d89096ee73f6.tar.gz |
new warning "Useless use of sort in scalar context"
Message-ID: <20011119132645.A15034@rafael>
p4raw-id: //depot/perl@13094
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1024,6 +1024,9 @@ Perl_scalar(pTHX_ OP *o) } WITH_THR(PL_curcop = &PL_compiling); break; + case OP_SORT: + if (ckWARN(WARN_VOID)) + Perl_warner(aTHX_ WARN_VOID, "Useless use of sort in scalar context"); } return o; } |