From: Doug MacEachern Date: Tue, 20 Jun 2000 21:23:56 +0000 (-0700) Subject: "Constant subroutine redefined" mandatory warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cce20911505da61bb6976ed7c3a102a403db65ee;p=p5sagit%2Fp5-mst-13.2.git "Constant subroutine redefined" mandatory warning Message-ID: p4raw-id: //depot/cfgperl@6228 --- diff --git a/op.c b/op.c index 4591984..fb060d3 100644 --- a/op.c +++ b/op.c @@ -4454,7 +4454,7 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) goto withattrs; if ((const_sv = cv_const_sv(cv))) const_changed = sv_cmp(const_sv, op_const_sv(block, Nullcv)); - if ((const_sv || const_changed) && ckWARN(WARN_REDEFINE)) + if ((const_sv && const_changed) || ckWARN(WARN_REDEFINE)) { line_t oldline = CopLINE(PL_curcop); CopLINE_set(PL_curcop, PL_copline);