mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
cd2nroff: convert two warnings to errors
Since the warnings tend to get missed too easily and these are problems we rather want addressed than letting slide. Closes #13929
This commit is contained in:
parent
02730befc1
commit
69b6c10568
1 changed files with 4 additions and 2 deletions
|
|
@ -326,7 +326,8 @@ sub single {
|
|||
}
|
||||
else {
|
||||
chomp;
|
||||
print STDERR "WARN: unrecognized line in $f, ignoring:\n:'$_';"
|
||||
print STDERR "$f:$line:1:ERROR: unrecognized header keyword: '$_'\n";
|
||||
$errors++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -387,7 +388,8 @@ sub single {
|
|||
$d =~ s/\*(\S.*?)\*/\\fI$1\\fP/g;
|
||||
|
||||
if($d =~ /[^\\][\<\>]/) {
|
||||
print STDERR "$f:$line:1:WARN: un-escaped < or > used\n";
|
||||
print STDERR "$f:$line:1:ERROR: un-escaped < or > used\n";
|
||||
$errors++;
|
||||
}
|
||||
# convert backslash-'<' or '> to just the second character
|
||||
$d =~ s/\\([<>])/$1/g;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue