do not repeat the same warning in the output.

This commit is contained in:
slamm%netscape.com 1999-09-08 23:47:37 +00:00
parent dae5177f75
commit aadd80f1f3

View File

@ -254,6 +254,11 @@ sub gcc_parser {
$warnings{$file}{$line}->{count}++;
$total_warnings_count++;
# Do not re-add this warning if it has been seen before
for my $rec (@{ $warnings{$file}{$line}->{list} }) {
next PARSE_TOP if $rec->{warning_text} eq $warning_text;
}
# Remember where in the build log the warning occured
push @{ $warnings{$file}{$line}->{list} }, {
log_file => $log_file,