The following commit has been merged in the master branch:
commit b86486fe9d9964e4f270272c686c84dbb704bfa0
Author: Niels Thykier <[email protected]>
Date:   Wed Aug 8 16:39:49 2012 +0200

    L::Output: Intialize verbosity_level and color in new
    
    Initialize verbositiy_level and color in the L::Output constructor to
    ensure they are defined.  This avoids a bunch of "undef" warnings, if
    the client code does not explicitly set these values.
    
    Signed-off-by: Niels Thykier <[email protected]>

diff --git a/lib/Lintian/Output.pm b/lib/Lintian/Output.pm
index 54edf75..571aaaa 100644
--- a/lib/Lintian/Output.pm
+++ b/lib/Lintian/Output.pm
@@ -146,6 +146,9 @@ sub new {
     $self->colors({%default_colors});
     $self->issuedtags({});
 
+    # Set defaults to avoid "uninitialized" warnings
+    $self->verbosity_level (0);
+    $self->color ('never');
     return $self;
 }
 

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to