]> git.ipfire.org Git - thirdparty/git.git/blobdiff - perl/FromCPAN/Error.pm
perl: check for perl warnings while running tests
[thirdparty/git.git] / perl / FromCPAN / Error.pm
index 8b95e2d73d0f8f8d5b50eaaa360135f102b52b74..d82b71325c6bd492cd7eb0f703b00fa6634c627d 100644 (file)
@@ -12,7 +12,7 @@
 package Error;
 
 use strict;
-use warnings;
+use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 
 use vars qw($VERSION);
 use 5.004;