From: Father Chrysostomos Date: Sun, 8 Sep 2013 21:19:34 +0000 (-0700) Subject: Use diag_listed_as two suppress two diag.t failures X-Git-Tag: upstream/5.20.0~1897^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7aae02997ac3a49c1ab348041cff6989a1231075;p=platform%2Fupstream%2Fperl.git Use diag_listed_as two suppress two diag.t failures --- diff --git a/pp.c b/pp.c index 2dd0fe8..cb6fe83 100644 --- a/pp.c +++ b/pp.c @@ -4361,6 +4361,7 @@ PP(pp_kvaslice) const I32 flags = is_lvalue_sub(); if (flags) { if (!(flags & OPpENTERSUB_INARGS)) + /* diag_listed_as: Can't modify %s in %s */ Perl_croak(aTHX_ "Can't modify index/value array slice in list assignment"); lval = flags; } @@ -4808,6 +4809,7 @@ PP(pp_kvhslice) const I32 flags = is_lvalue_sub(); if (flags) { if (!(flags & OPpENTERSUB_INARGS)) + /* diag_listed_as: Can't modify %s in %s */ Perl_croak(aTHX_ "Can't modify key/value hash slice in list assignment"); lval = flags; }