From: Shawn M Moore Date: Sat, 19 Feb 2011 04:14:53 +0000 (-0500) Subject: Still need no warnings 'uninitialized' X-Git-Tag: 2.0100~224 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f5bacdc4274aded74553f6a88c0c8a9998c06511;p=gitmo%2FMoose.git Still need no warnings 'uninitialized' ./t/050_metaclasses/019_create_anon_with_required_attr.t has an undef warning without this --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 439c38e..e2170a8 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -461,6 +461,7 @@ sub _remove_generated_metaobjects { # we don't want to clean out the namespace now. We can detect # that because Moose will explicitly update the singleton # cache in Class::MOP. + no warnings 'uninitialized'; my $current_meta = Class::MOP::get_metaclass_by_name($name); return if $current_meta ne $self;