1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed up munged messages from gcc builds.

This commit is contained in:
Doug Schaefer 2007-06-01 20:15:14 +00:00
parent 08e25a4735
commit cc52a28cd1
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ public class GCCErrorParser extends AbstractErrorParser {
}
public int getSeverity(Matcher matcher) {
String warningGroup = matcher.group(4);
if (warningGroup == null || warningGroup.indexOf("arning") >= 0) //$NON-NLS-1$
if (warningGroup != null && warningGroup.indexOf("arning") >= 0) //$NON-NLS-1$
return IMarkerGenerator.SEVERITY_WARNING;
else
return IMarkerGenerator.SEVERITY_ERROR_RESOURCE;

View file

@ -16,7 +16,7 @@ GCCErrorParser_skip_UndeclaredOnlyOnce=\\(Each undeclared identifier is reported
GCCErrorParser_skip_forEachFunction=for each function it appears in.\\)
GCCErrorParser_skip_note=: note:
GCCErrorParser_sikp_instantiatedFromHere=instantiated from here
GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)?(.*?[([Ww]arning)([Ee]rror)]:?)? (.*)
GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)?(.*[([Ww]arning)([Ee]rror)]:)? (.*)
GLDErrorParser_error_text=(.*)\\(\\.text\\+.*\\): (.*)
GLDErrorParser_warning_general=ld(\\.exe)?: [Ww]arning:? (.*)
GLDErrorParser_error_general=ld(\\.exe)?: (.*)