--- a/cdt/cdt_6_0_x/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java Fri Aug 07 10:37:37 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java Fri Aug 07 12:24:40 2009 -0500
@@ -53,8 +53,10 @@
@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$
+ warningGroup.trim().toLowerCase().startsWith("warning:")) ) { //$NON-NLS-1$
return IMarkerGenerator.SEVERITY_WARNING;
+ }
return IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
}