]> git.ipfire.org Git - thirdparty/curl.git/commit
scripts: enable strict warnings in Perl where missing, fix fallouts
authorViktor Szakats <commit@vsz.me>
Wed, 9 Jul 2025 19:18:29 +0000 (21:18 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 27 Jul 2025 20:35:18 +0000 (22:35 +0200)
commit2ec54556d4e3f3ab551b5298adab0c703d85a463
tree5122ac42c80e0766e2ee837f922d2c72a6341ff0
parent89771d19d58d16cfe6e1d7fda7acd65a0a316eba
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
45 files changed:
.github/scripts/badwords.pl
.github/scripts/cleancmd.pl
.github/scripts/cmp-config.pl
.github/scripts/randcurl.pl
.github/scripts/trimmarkdownheader.pl
.github/scripts/verify-examples.pl
.github/scripts/verify-synopsis.pl
docs/examples/adddocsref.pl
docs/examples/version-check.pl
docs/libcurl/mksymbolsmanpage.pl
docs/libcurl/symbols.pl
lib/optiontable.pl
scripts/cd2cd
scripts/cdall
scripts/ciconfig.pl
scripts/cijobs.pl
scripts/delta
scripts/extract-unit-protos
scripts/managen
scripts/mdlinkcheck
scripts/nroff2cd
scripts/randdisable
scripts/release-notes.pl
scripts/singleuse.pl
src/mk-file-embed.pl
src/mkhelp.pl
tests/allversions.pm
tests/http2-server.pl
tests/http3-server.pl
tests/libtest/mk-lib1521.pl
tests/libtest/test1013.pl
tests/libtest/test1022.pl
tests/libtest/test307.pl
tests/libtest/test610.pl
tests/libtest/test613.pl
tests/memanalyze.pl
tests/runtests.pl
tests/test1140.pl
tests/test1175.pl
tests/test1275.pl
tests/test1276.pl
tests/test1488.pl
tests/test1707.pl
tests/test971.pl
tests/testcurl.pl