scripts: enable strict warnings in Perl where missing, fix fallouts

- add 'use warnings' and 'use strict' where missing from Perl scripts.
- fix 'Use of uninitialized value'.
- fix missing declarations.
- test1140.pl: fix 'Possible precedence issue with control flow operator'.
- fix other misc issues.

Most actual errors found during this PR were fixed and merged via
separate PRs.

Likely there are remaining warnings not found and fixed in this PR.

Closes #17877
This commit is contained in:
Viktor Szakats 2025-07-09 21:18:29 +02:00
parent 89771d19d5
commit 2ec54556d4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
45 changed files with 323 additions and 97 deletions

View file

@ -23,6 +23,9 @@
#
###########################################################################
use strict;
use warnings;
my $autotools = $ARGV[0];
my $cmake = $ARGV[1];