diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1999-08-12 19:17:20 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1999-08-12 19:17:20 +0000 |
commit | 7e291ef107a151a0b630a8ce85d6a562438da741 (patch) | |
tree | bfedf16225c4631bb72a97f104f2fffd75148be9 /op.c | |
parent | a0e9c8c7a9cc6b6f25b14d351ab0537c5ba739ed (diff) | |
download | perl-7e291ef107a151a0b630a8ce85d6a562438da741.tar.gz |
Turn of deprecated warnings for defined(@Sompack::ISA) type
tests i.e. RV2AV and RV2HV
p4raw-id: //depot/perl@3970
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5046,6 +5046,7 @@ Perl_ck_defined(pTHX_ OP *o) /* 19990527 MJD */ if ((o->op_flags & OPf_KIDS) && ckWARN(WARN_DEPRECATED)) { switch (cUNOPo->op_first->op_type) { case OP_RV2AV: + break; /* Globals via GV can be undef */ case OP_PADAV: case OP_AASSIGN: /* Is this a good idea? */ Perl_warner(aTHX_ WARN_DEPRECATED, @@ -5054,6 +5055,7 @@ Perl_ck_defined(pTHX_ OP *o) /* 19990527 MJD */ "(Maybe you should just omit the defined()?)\n"); break; case OP_RV2HV: + break; /* Globals via GV can be undef */ case OP_PADHV: Perl_warner(aTHX_ WARN_DEPRECATED, "defined(%hash) is deprecated"); |