projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7756897
)
Ignore "used only once" warning
Shawn M Moore [Tue, 9 Dec 2008 04:53:21 +0000 (
04:53
+0000)]
lib/Mouse/Meta/Method/Constructor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/Method/Constructor.pm
b/lib/Mouse/Meta/Method/Constructor.pm
index
ba7b28b
..
efdf353
100644
(file)
--- 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);};