@@ -1753,15 +1753,15 @@ sub update_state
1753
1753
sub warnSuppress ($$)
1754
1754
{
1755
1755
my ($code , $errName ) = @_ ;
1756
- if ($message_count [$code ] == $suppressAfter - 1 ) {
1756
+ if ($message_count [$code ] == ( $suppressAfter + 1) ) {
1757
1757
my $explain =
1758
1758
$lcovutil::verbose ||
1759
1759
$message_count [$ERROR_COUNT ] == 0 ?
1760
- " \n\t To increase or decrease this limit us '--rc max_message_count=value'."
1760
+ " \n\t To increase or decrease this limit use '--rc max_message_count=value'."
1761
1761
:
1762
1762
' ' ;
1763
1763
ignorable_warning($ERROR_COUNT ,
1764
- " $suppressAfter count reached for '$errName ' messages: no more will be reported.$explain "
1764
+ " max_message_count= $suppressAfter reached for '$errName ' messages: no more will be reported.$explain "
1765
1765
);
1766
1766
}
1767
1767
}
@@ -1792,7 +1792,7 @@ sub ignorable_error($$;$)
1792
1792
$errName = $ERROR_NAME {$code }
1793
1793
if exists ($ERROR_NAME {$code });
1794
1794
1795
- if ($message_count [$code ]++ > $suppressAfter &&
1795
+ if ($message_count [$code ]++ >= $suppressAfter &&
1796
1796
0 < $suppressAfter ) {
1797
1797
# safe to just continue without checking anything else - as either
1798
1798
# this message is not fatal and we emitted it some number of times,
@@ -1844,7 +1844,7 @@ sub ignorable_warning($$;$)
1844
1844
my $errName = " code_$code " ;
1845
1845
$errName = $ERROR_NAME {$code }
1846
1846
if exists ($ERROR_NAME {$code });
1847
- if ($message_count [$code ]++ > $suppressAfter &&
1847
+ if ($message_count [$code ]++ >= $suppressAfter &&
1848
1848
0 < $suppressAfter ) {
1849
1849
# warn that we are suppressing from here on - for the first skipped
1850
1850
# message of this type
0 commit comments