From: Daniel Stenberg Date: Wed, 12 Jun 2024 09:38:13 +0000 (+0200) Subject: cd2nroff: convert two warnings to errors X-Git-Tag: curl-8_9_0~254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69b6c10568164333237c45b22f9d9d116de7467a;p=thirdparty%2Fcurl.git 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 --- diff --git a/scripts/cd2nroff b/scripts/cd2nroff index 7571d20cd4..c191fcca79 100755 --- a/scripts/cd2nroff +++ b/scripts/cd2nroff @@ -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;