doc lint: Perl "strict" and "warnings" in lint-gitlink.perl

Amend this script added in ab81411ced (ci: validate "linkgit:" in documentation, 2016-05-04) to pass under "use strict", and add a "use warnings" for good measure. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Apr 9, 2021 at 17:02 UTC 3951eeb6d981cf9b9109c905d773c978e6de3f0d
1 file changed +3 -1
Documentation/lint-gitlink.perl
+3 -1
@@ -1,5 +1,7 @@
1 #!/usr/bin/perl
2
3 +use strict;
4 +use warnings;
5 use File::Find;
6 use Getopt::Long;
7
@@ -45,7 +47,7 @@ sub lint {
47 report($where, $target, "no such source");
48 next;
49 }
48 - $real_section = grab_section($page);
50 + my $real_section = grab_section($page);
51 if ($real_section != $section) {
52 report($where, $target,
53 "wrong section (should be $real_section)");