mirror of
https://github.com/curl/curl.git
synced 2026-06-08 01:34:39 +03:00
verify-examples.pl: enable warnings, fix them
This commit is contained in:
parent
7070a7ea14
commit
921219caa3
1 changed files with 6 additions and 3 deletions
9
.github/scripts/verify-examples.pl
vendored
9
.github/scripts/verify-examples.pl
vendored
|
|
@ -23,12 +23,15 @@
|
|||
#
|
||||
###########################################################################
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my @files = @ARGV;
|
||||
my $cfile = "test.c";
|
||||
my $check = "./scripts/checksrc.pl";
|
||||
my $error;
|
||||
my $error = 0;
|
||||
|
||||
if($files[0] eq "-h") {
|
||||
if(!@files || $files[0] eq "-h") {
|
||||
print "Usage: verify-examples [markdown pages]\n";
|
||||
exit;
|
||||
}
|
||||
|
|
@ -82,7 +85,7 @@ sub extract {
|
|||
return ($fail ? 0 : $l);
|
||||
}
|
||||
|
||||
my $count;
|
||||
my $count = 0;
|
||||
for my $m (@files) {
|
||||
#print "Verify $m\n";
|
||||
my $out = extract($m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue