Add a "no warnings 'once'"
[gitmo/Mouse.git] / lib / Mouse / Meta / Method / Constructor.pm
index ea37419..596dccf 100644 (file)
@@ -182,6 +182,7 @@ sub _generate_BUILDALL {
     my @code;
     for my $class ($metaclass->linearized_isa) {
         no strict 'refs';
+        no warnings 'once';
 
         if (*{ $class . '::BUILD' }{CODE}) {
             unshift  @code, qq{${class}::BUILD(\$instance, \$args);};