docs/libcurl: fix type and prototype problems in examples

Found by enabling the typechecks when compiling them with
verify-examples.pl

Closes #17231
This commit is contained in:
Daniel Stenberg 2025-04-29 22:27:52 +02:00
parent d33b449271
commit b1eebdf46a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
21 changed files with 38 additions and 34 deletions

View file

@ -34,7 +34,7 @@ if($files[0] eq "-h") {
}
sub testcompile {
my $rc = system("gcc -c test.c -DCURL_DISABLE_TYPECHECK -DCURL_ALLOW_OLD_MULTI_SOCKET -DCURL_DISABLE_DEPRECATION -Wunused -Werror -Wall -Wno-unused-but-set-variable -I include") >> 8;
my $rc = system("gcc -c test.c -DCURL_ALLOW_OLD_MULTI_SOCKET -DCURL_DISABLE_DEPRECATION -Wunused -Werror -Wall -Wno-unused-but-set-variable -I include") >> 8;
return $rc;
}