1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Bug 276604 - Add WARNING: as valid warning header in gnu make error messages.

This commit is contained in:
Doug Schaefer 2009-05-16 23:55:21 +00:00
parent 841fefd0e5
commit 0d43fd79c5
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ public class GCCErrorParser extends AbstractErrorParser {
@Override
public int getSeverity(Matcher matcher) {
String warningGroup = matcher.group(4);
if (warningGroup != null && warningGroup.indexOf("arning") >= 0) //$NON-NLS-1$
if (warningGroup != null && warningGroup.toLowerCase().endsWith("warning:")) //$NON-NLS-1$
return IMarkerGenerator.SEVERITY_WARNING;
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
GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)?(.*[([Ww]arning)([Ee]rror)]:)? (.*)
GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)?(.*[([Ww]arning)(WARNING)([Ee]rror)]:)? (.*)
GLDErrorParser_error_text=(.*)\\(\\.text\\+.*\\): (.*)
GLDErrorParser_warning_general=ld(\\.exe)?: [Ww]arning:? (.*)
GLDErrorParser_error_general=ld(\\.exe)?: (.*)