From: Shawn M Moore Date: Tue, 9 Dec 2008 04:53:21 +0000 (+0000) Subject: Ignore "used only once" warning X-Git-Tag: 0.19~117 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2becec751793d14d71a5361e4e0e34d0d22c89f;p=gitmo%2FMouse.git Ignore "used only once" warning --- diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index ba7b28b..efdf353 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -167,6 +167,7 @@ sub _generate_BUILDALL { push @code, q{no strict 'refs';}; push @code, q{no warnings 'once';}; no strict 'refs'; + no warnings 'once'; for my $klass ($meta->linearized_isa) { if (*{ $klass . '::BUILD' }{CODE}) { push @code, qq{${klass}::BUILD(\$instance, \$args);};