Skip to content

Commit

Permalink
Use ignorable error for inconsistent function end line assignment.
Browse files Browse the repository at this point in the history
Signed-off-by:  Henry Cox <[email protected]>
  • Loading branch information
henry2cox committed May 25, 2023
1 parent 82310ca commit 53a4896
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/lcovutil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2506,9 +2506,13 @@ sub end_line
sub set_end_line
{
my ($self, $line) = @_;
die('bad end line ' . $self->file() .
":$line for " . $self->name() . " start: " . $self->line())
unless ($line >= $self->line());
if ($line < $self->line()) {
lcovutil::ignorable_error($lcovutil::ERROR_INCONSISTENT_DATA,
'"' . $self->file() . '":' . $self->line() .
': function ' . $self->name() .
" end line $line less than start line");
return;
}
$self->[5] = $line;
}

Expand Down

0 comments on commit 53a4896

Please sign in to comment.