p4raw-id: //depot/perl@9535
break;
case OA_AVREF:
if ((type == OP_PUSH || type == OP_UNSHIFT)
- && !kid->op_sibling && ckWARN(WARN_MISC))
- Perl_warner(aTHX_ WARN_MISC,
+ && !kid->op_sibling && ckWARN(WARN_SYNTAX))
+ Perl_warner(aTHX_ WARN_SYNTAX,
"Useless use of %s with no values",
PL_op_desc[type]);
=item Useless use of %s with no values
-(W misc) You used the push() or unshift() function with no arguments
+(W syntax) You used the push() or unshift() function with no arguments
apart from the array, like C<push(@x)> or C<unshift(@foo)>. That won't
usually have any effect on the array, so is completely useless. It's
possible in principle that push(@tied_array) could have some effect
########
# op.c
my @x;
-use warnings 'misc' ;
+use warnings 'syntax' ;
push(@x);
unshift(@x);
-no warnings 'misc' ;
+no warnings 'syntax' ;
push(@x);
unshift(@x);
EXPECT