summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-11-19 14:26:45 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-19 14:09:34 +0000
commita801c63c4c283fdf8af1d9fbd7d3d89096ee73f6 (patch)
treec124764c6ddf3ba2f477431fccf785bcbb723b15 /op.c
parenta16a9fa3134789d190f80e1f78e4ef69ba73acca (diff)
downloadperl-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/op.c b/op.c
index af125aa4af..6343a03578 100644
--- a/op.c
+++ b/op.c
@@ -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;
}