зеркало из https://github.com/mozilla/gecko-dev.git
Ignore a few more warnings caused by lame unix header files.
This commit is contained in:
Родитель
c80556169a
Коммит
49454dc044
|
@ -93,8 +93,9 @@ $source_root_pat = '^.*/mozilla/';
|
||||||
'\' was hidden',
|
'\' was hidden',
|
||||||
'aggregate has a partly bracketed initializer', # mailnews is stuck with this
|
'aggregate has a partly bracketed initializer', # mailnews is stuck with this
|
||||||
#'declaration of \`index\' shadows global',
|
#'declaration of \`index\' shadows global',
|
||||||
'declaration of \`ws\' shadows global', # from istream
|
'declaration of \`ws\' shadows global', # From istream
|
||||||
'declaration of \`(?:y0|y1)\' shadows global', # from mathcalls.h
|
'declaration of \`free\' shadows global', # From strstream.h
|
||||||
|
'declaration of \`(?:y0|y1|j1|remainder)\' shadows global', #From mathcalls.h
|
||||||
'is not \(any longer\) pertinent', # cvs warning we can safely ignore
|
'is not \(any longer\) pertinent', # cvs warning we can safely ignore
|
||||||
'ANSI C forbids long long integer constants', # js uses long long constants
|
'ANSI C forbids long long integer constants', # js uses long long constants
|
||||||
);
|
);
|
||||||
|
@ -679,7 +680,7 @@ sub print_source_code {
|
||||||
for my $warn_rec (@{ $line_rec->{list}}) {
|
for my $warn_rec (@{ $line_rec->{list}}) {
|
||||||
my $warning = $warn_rec->{warning_text};
|
my $warning = $warn_rec->{warning_text};
|
||||||
my ($keyword) = $warning =~ /\`([^\']*)\'/;
|
my ($keyword) = $warning =~ /\`([^\']*)\'/;
|
||||||
next if $keyword eq '';
|
next unless defined $keyword and $keyword ne '';
|
||||||
$source_text =~ s|\b\Q$keyword\E\b|<b>$keyword</b>|gm;
|
$source_text =~ s|\b\Q$keyword\E\b|<b>$keyword</b>|gm;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче