)&& !attrs) {
if (CvFLAGS(PL_compcv)) {
/* might have had built-in attrs applied */
- if (CvLVALUE(PL_compcv) && ! CvLVALUE(cv))
+ if (CvLVALUE(PL_compcv) && ! CvLVALUE(cv) && ckWARN(WARN_MISC))
Perl_warner(aTHX_ packWARN(WARN_MISC), "lvalue attribute ignored after the subroutine has been defined");
CvFLAGS(cv) |= (CvFLAGS(PL_compcv) & CVf_BUILTIN_ATTRS & ~CVf_LVALUE);
}
=item lvalue attribute ignored after the subroutine has been defined
-(W) Making a subroutine an lvalue subroutine after it has been defined
+(W misc) Making a subroutine an lvalue subroutine after it has been defined
by declaring the subroutine with a lvalue attribute is not
possible. To make the the subroutine a lvalue subroutine add the
lvalue attribute to the definition, or put the the declaration before