ignore the error strings, not the warning strings.

This commit is contained in:
kestes%walrus.com 2002-05-02 03:18:40 +00:00
parent 8a63c180da
commit f7b96ed3b4

View File

@ -5,8 +5,8 @@
# errors and creating links into the source code where the errors
# occurred.
# $Revision: 1.8 $
# $Date: 2002/05/02 01:39:47 $
# $Revision: 1.9 $
# $Date: 2002/05/02 03:18:40 $
# $Author: kestes%walrus.com $
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/default_conf/Error_Parse.pm,v $
# $Name: $
@ -157,6 +157,24 @@ sub line_type {
($line =~ /jmake.MakerFailedException:/) || # Java error
0);
if ($error) {
my $ignore = (
# note that the word inline was followed by a
# quote mark which emacs thought was a bit funny
# so I removed it.
($line =~ m/warning: ANSI does not permit the keyword `inline/) ||
($line =~ m/warning: operator new should throw an exception, not return NULL/) ||
($line =~ m/zip warning: .* not found or empty/) ||
0);
if ($ignore) {
undefine $error;
}
}
if ($error) {
return('error');
}
@ -171,23 +189,6 @@ sub line_type {
0);
if ($warning) {
my $ignore = (
# note that the word inline was followed by a
# quote mark which emacs thought was a bit funny
# so I removed it.
($line =~ m/warning: ANSI does not permit the keyword `inline/) ||
($line =~ m/warning: operator new should throw an exception, not return NULL/) ||
($line =~ m/zip warning: .* not found or empty/) ||
0);
if ($ignore) {
undefine $warning;
}
}
if ($warning) {
return('warning');
}
@ -304,6 +305,17 @@ sub line_type {
($line =~ /\bCan\'t (create)|(open)|(find) /) || # CW project error
0);
if ($error) {
my $ignore = (
($line =~ m/Warning : cannot find matching deallocation function for/) ||
0);
if ($ignore) {
undefine $error;
}
}
($error) &&
return('error');
@ -314,17 +326,6 @@ sub line_type {
($line =~ m/not implemented:/i) ||
0);
if ($warning) {
my $ignore = (
($line =~ m/Warning : cannot find matching deallocation function for/) ||
0);
if ($ignore) {
undefine $warning;
}
}
($warning) &&
return('warning');