From 7fd94585290b7c489f0886aa211d244510917d65 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Tue, 8 Mar 2022 16:48:16 +0000 Subject: Move sort's scalar context warning to new 'scalar' category --- t/lib/warnings/op | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/lib/warnings/op b/t/lib/warnings/op index 1437093151..3e7cdc58b3 100644 --- a/t/lib/warnings/op +++ b/t/lib/warnings/op @@ -477,9 +477,9 @@ Useless use of __SUB__ in void context at - line 61. Useless use of anonymous array ([]) in void context at - line 62. ######## # op.c -use warnings 'void' ; close STDIN ; +use warnings 'scalar' ; close STDIN ; my $x = sort (2,1,3); -no warnings 'void' ; +no warnings 'scalar' ; $x = sort (2,1,3); EXPECT Useless use of sort in scalar context at - line 3. -- cgit v1.2.1