X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FBase.pm;h=e1387e930f1f9c6c947c8ee25c8f3c8936263f36;hb=9e8033c1b1da82a37e0897e70d25889b5b7c7dbd;hp=33dff584a433a9dcfd37a644613519570ae82992;hpb=106a976aec1e51c87f260bd9a31de3692a8f3301;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 33dff58..e1387e9 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -439,7 +439,11 @@ sub _load_external { or croak "Failed to close $real_inc_path: $!"; # load the class too - do $real_inc_path; + { + # turn off redefined warnings + $SIG{__WARN__} = sub {}; + do $real_inc_path; + } die $@ if $@; }