mirror of
https://github.com/curl/curl.git
synced 2026-04-21 06:52:12 +03:00
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:
parent
d33b449271
commit
b1eebdf46a
21 changed files with 38 additions and 34 deletions
2
.github/scripts/verify-examples.pl
vendored
2
.github/scripts/verify-examples.pl
vendored
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue