Commit graph

35691 commits

Author SHA1 Message Date
Viktor Szakats
35eaab5ced
mksymbolsmanpage.pl: enable warnings, fix one 2025-07-27 22:23:16 +02:00
Viktor Szakats
78b0ee0d84
release-notes.pl: enable warnings, fix them 2025-07-27 22:23:15 +02:00
Viktor Szakats
fbca901d39
singleuse.pl: enable warnings, fix them 2025-07-27 22:23:15 +02:00
Viktor Szakats
f47c18a1dc
randdisable: enable warnings, fix one 2025-07-27 22:23:15 +02:00
Viktor Szakats
7b20671570
nroff2cd: enable warnings, fix them 2025-07-27 22:23:15 +02:00
Viktor Szakats
9a5c861b41
mdlinkcheck: enable warnings, fix them
fix a typo that made this error never detected:
```
%s ERROR links to missing URL %s
```
2025-07-27 22:23:15 +02:00
Viktor Szakats
1899e27e21
managen: enable warnings, fix most 2025-07-27 22:23:15 +02:00
Viktor Szakats
6c27c77608
allversions.pm: enable warnings, fix one 2025-07-27 22:23:15 +02:00
Viktor Szakats
6c688767d3
cd2cd: enable warnings, fix them 2025-07-27 22:23:15 +02:00
Viktor Szakats
f6ae4b7723
badwords.pl: enable warnings, fix them 2025-07-27 22:23:15 +02:00
Viktor Szakats
20d80015d0
cleancmd.pl: enable warnings, fix one 2025-07-27 22:23:15 +02:00
Viktor Szakats
44496db495
cmp-config.pl: enable warnings 2025-07-27 22:23:15 +02:00
Viktor Szakats
b69a6c5bec
randcurl.pl: initialize variables 2025-07-27 22:23:15 +02:00
Viktor Szakats
aa1e6c3e38
trimmarkdownheader.pl: enable warnings, fix one 2025-07-27 22:23:15 +02:00
Viktor Szakats
e7cf939ab3
verify-synopsis.pl: enable warnings, fix one 2025-07-27 22:23:15 +02:00
Viktor Szakats
921219caa3
verify-examples.pl: enable warnings, fix them 2025-07-27 22:23:15 +02:00
Viktor Szakats
7070a7ea14
drop FATAL, do it separate PR 2025-07-27 22:23:15 +02:00
Viktor Szakats
f63d275137
test1140.pl: try fixing warning
```
Possible precedence issue with control flow operator (exit) at ../../tests/test1140.pl line 119.
```
https://github.com/curl/curl/actions/runs/16208581789/job/45764191709?pr=17877#step:16:1886
2025-07-27 22:23:15 +02:00
Viktor Szakats
1e65c5894b
test1175.pl formatting 2025-07-27 22:23:15 +02:00
Viktor Szakats
34472f7dc1
test1275.pl: initialize $errors 2025-07-27 22:23:15 +02:00
Viktor Szakats
0f7a83d7ee
test1707.pl: initialize $error 2025-07-27 22:23:15 +02:00
Viktor Szakats
a0bbb9776b
test1488.pl: initialize $error 2025-07-27 22:23:15 +02:00
Viktor Szakats
6c0baa5bf3
test1488.pl test971.pl fixup 2025-07-27 22:23:15 +02:00
Viktor Szakats
5b53ab2b0b
allversions.pm: text in comment 2025-07-27 22:23:15 +02:00
Viktor Szakats
c5b87ba164
test1013.pl: fix warning
```
Global symbol "@curl" requires explicit package name (did you forget to declare "my @curl"?) at ./test1013.pl line 47.
Global symbol "@curl" requires explicit package name (did you forget to declare "my @curl"?) at ./test1013.pl line 61.
Global symbol "@curl" requires explicit package name (did you forget to declare "my @curl"?) at ./test1013.pl line 61.
Global symbol "@curl" requires explicit package name (did you forget to declare "my @curl"?) at ./test1013.pl line 65.
```
2025-07-27 22:23:15 +02:00
Viktor Szakats
fea9610e47
test307.pl: silence warning
```
Scalar value @ARGV[0] better written as $ARGV[0] at ./test307.pl line 33.
```
2025-07-27 22:23:15 +02:00
Viktor Szakats
1c89117398
mk-lib1521.pl: fix warning 2025-07-27 22:23:15 +02:00
Viktor Szakats
28957cb37c
libtests: enable strict/warnings, fix formatting 2025-07-27 22:23:15 +02:00
Viktor Szakats
364c5442c5
test*: make all Perl warnings fatal 2025-07-27 22:23:15 +02:00
Viktor Szakats
13afb1bf10
extract-unit-protos: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
c052bd176f
mkhelp.pl: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
9bdd0db192
mk-file-embed.pl: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
bc1e0cf561
test971.pl: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
31e8d11aee
test1488.pl: enable strict, fix warning 2025-07-27 22:23:14 +02:00
Viktor Szakats
8323768234
test1276.pl: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
5bd42f479f
test1275.pl: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
d541cd3999
test1140.pl: enable strict/warnings, fix them 2025-07-27 22:23:14 +02:00
Viktor Szakats
d672bbd876
memanalyze.pl: try fixing a warning
```
Use of uninitialized value $sizeataddr{"5600c1703d38"} in numeric gt (>) at ../../tests/memanalyze.pl line 178, <$fileh> line 1.
Use of uninitialized value $sizeataddr{"5600c1703d38"} in numeric gt (>) at ../../tests/memanalyze.pl line 178, <$fileh> line 1.
```
https://github.com/curl/curl/actions/runs/16178889943/job/45670573824?pr=17877#step:39:163
2025-07-27 22:23:14 +02:00
Viktor Szakats
f01ca10aa3
runtests.pl: try fixing unitialized $allocs
```
Use of uninitialized value $allocs in numeric gt (>) at ../../tests/runtests.pl line 1729.
```
https://github.com/curl/curl/actions/runs/16178889943/job/45670573824?pr=17877#step:39:165
2025-07-27 22:23:14 +02:00
Viktor Szakats
d2c0b6b2d6
memanalyze.pl: fix warnings 2025-07-27 22:23:14 +02:00
Viktor Szakats
6c1879abb6
enable strict where missing cleanup 2025-07-27 22:23:14 +02:00
Viktor Szakats
9ba943e38e
enable strict where missing 2025-07-27 22:23:14 +02:00
Viktor Szakats
612557e022
bump warnings to errors 2025-07-27 22:23:14 +02:00
Viktor Szakats
9d7e97fe4d
enable warnings where missing 2025-07-27 22:23:13 +02:00
Viktor Szakats
08f97cbf5c
doh: rename symbols to avoid collision with mingw-w64 headers
Collision happens when building with mingw-w64 v3 or v2 while targeting
Vista or newer. `iphlpapi.h` includes `windns.h` in this case, which
defines macros named `DNS_TYPE_*`, colliding with curl doh enums.

The issue was fixed in mingw-w64 v4:
ea95d55e33

Fixes:
```
lib/doh.h:54:3: error: expected identifier before numeric constant
   DNS_TYPE_A = 1,
   ^
```
Ref: https://github.com/curl/curl/actions/runs/16551209676/job/46806303365?pr=18009#step:10:17

This workaround seems harmless and generally good practice, but
another option is to require mingw-w64 v4.

Ref: #18009
Closes #18041
2025-07-27 18:54:00 +02:00
Stefan Eissing
6080143f9d
multi: replace remaining EXPIRE_RUN_NOW
Remove EXPIRE_RUN_NOW completely. Replace the remaining use of
EXPIRE_RUN_NOW with marking transfers as dirty.

Closes #17883
2025-07-27 18:40:41 +02:00
David Zhuang
0122cc17f1
multi: don't insert a node into the splay tree twice
Closes #18005
2025-07-27 18:33:08 +02:00
Daniel Stenberg
9f9fecc724
tool_getparam: add support for --longopt=value
If the long option name ends with an equals sign (`=`), the argument is
the text following on its right side.

This makes the command line parser accept this common style in addition
to the existing way to accept option arguments more similar to how other
command line tools do.

Example: `curl --user-agent=curl-2000 https://example.com/`

Change a few existing tests to use this syntax: 206, 1333, 1335, 1442

Closes #17789
2025-07-27 18:29:01 +02:00
Daniel Stenberg
378713deb2
netrc: use the NETRC environment variable (first) if set
Add test 755 to verify.

Proposed-by: Berthin Torres Callañaupa
URL: https://curl.se/mail/lib-2025-06/0015.html

Closes #17712
2025-07-27 18:26:43 +02:00
Daniel Stenberg
9d8998c994
tls: make default TLS version be minimum 1.2
This still allows users to explictily ask for 1.0 or 1.1 as the minimum
version. If the TLS library allows it.

Starting with this change, the CURL_SSLVERSION_DEFAULT value is no
longer used as minimum version when the TLS backend are called.

This also makes curl set the minimum version to 1.2 independently of
libcurl for the rare case where a newer curl tool would use an older
libcurl.

URL: https://curl.se/mail/lib-2025-07/0007.html
Assisted-by: Stefan Eissing
Closes #17894
2025-07-27 18:23:04 +02:00