mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:01:41 +03:00
docs: enable more compiler warnings for C snippets, fix 3 finds
Also: - sync gcc option order. - unfold lines in C snippet. Closes #21006
This commit is contained in:
parent
673e14cd33
commit
31add10322
5 changed files with 10 additions and 11 deletions
2
.github/scripts/verify-examples.pl
vendored
2
.github/scripts/verify-examples.pl
vendored
|
|
@ -37,7 +37,7 @@ if(!@files || $files[0] eq "-h") {
|
|||
}
|
||||
|
||||
sub testcompile {
|
||||
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;
|
||||
my $rc = system("gcc -c test.c -I include -W -Wall -pedantic -Werror -Wno-unused-parameter -Wno-unused-but-set-variable -DCURL_ALLOW_OLD_MULTI_SOCKET -DCURL_DISABLE_DEPRECATION") >> 8;
|
||||
return $rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
2
.github/scripts/verify-synopsis.pl
vendored
2
.github/scripts/verify-synopsis.pl
vendored
|
|
@ -35,7 +35,7 @@ if(!@files || $files[0] eq "-h") {
|
|||
}
|
||||
|
||||
sub testcompile {
|
||||
my $rc = system("gcc -c test.c -DCURL_DISABLE_TYPECHECK -DCURL_ALLOW_OLD_MULTI_SOCKET -I include") >> 8;
|
||||
my $rc = system("gcc -c test.c -I include -W -Wall -pedantic -Werror -DCURL_ALLOW_OLD_MULTI_SOCKET -DCURL_DISABLE_TYPECHECK") >> 8;
|
||||
return $rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue