]> ruin.nu Git - ndwebbie.git/blobdiff - calls.pl
fatal warnings
[ndwebbie.git] / calls.pl
index ce708fc0df83aa37c90a9c33988111e3bb2bd815..8aab04a63540aaa10a071b0ea2a604888fd59ca5 100644 (file)
--- a/calls.pl
+++ b/calls.pl
@@ -18,6 +18,8 @@
 #**************************************************************************/
 
 use strict;
+use warnings FATAL => 'all';
+no warnings qw(uninitialized);
 use POSIX;
 our $BODY;
 our $DBH;
@@ -160,7 +162,7 @@ WHERE i.call = ?
 ORDER BY p.x,p.y,p.z});
        $attackers->execute($call->{id});
        my @attackers;
-       my $i = 0;
+       $i = 0;
        while(my $attacker = $attackers->fetchrow_hashref){
                $i++;
                $attacker->{ODD} = $i % 2;