From 4f60a4cb54c355c43cb2eae8f198a276b4ae7ecb Mon Sep 17 00:00:00 2001
From: Andrew Yates <ayates@ebi.ac.uk>
Date: Tue, 28 May 2013 11:14:46 +0000
Subject: [PATCH] [ENSCORESW-483]. Set no warnings for uninitalized variables.
 Issue raised by Simon

---
 modules/Bio/EnsEMBL/Registry.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm
index b7a0d35c27..ddc7c2cf9b 100644
--- a/modules/Bio/EnsEMBL/Registry.pm
+++ b/modules/Bio/EnsEMBL/Registry.pm
@@ -434,7 +434,8 @@ sub clear{
 
 sub add_db {
   my ( $class, $db, $name, $adap ) = @_;
-
+  #No warnings brought in due to some overzelous webcode triggering a lot of warnings.
+  no warnings 'uninitialized';
   if ( lc( $db->species() ) ne lc( $adap->species ) ) {
     $registry_register{_SPECIES}{ lc( $db->species() ) }
       { lc( $db->group() ) }{'_special'}{ lc($name) } = $adap;
-- 
GitLab