From 5bd42f479fc3901c0248087c7de69818fcff5d8f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 9 Jul 2025 22:12:36 +0200 Subject: [PATCH] test1275.pl: enable strict/warnings, fix them --- tests/test1275.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test1275.pl b/tests/test1275.pl index e5f54c627e..fd8bbfc0f4 100755 --- a/tests/test1275.pl +++ b/tests/test1275.pl @@ -23,6 +23,9 @@ # ########################################################################### +use strict; +use warnings 'FATAL' => 'all'; + my $root=$ARGV[0] || ".."; my @m = `git ls-files -- $root`; @@ -45,7 +48,7 @@ sub checkfile { } open(my $fh, "<", "$f"); my $l; - my $prevl; + my $prevl = ''; my $ignore = 0; my $metadata = 0; while(<$fh>) {