From bcb893cbff3ee7b1ea98f39134a699404331f55c Mon Sep 17 00:00:00 2001 From: Thomas Fletcher Date: Thu, 17 Aug 2006 21:19:04 +0000 Subject: [PATCH] Make the warning vs error discrimination pick up on warning like keywords PR 85264 --- core/org.eclipse.cdt.core/ChangeLog | 4 ++++ .../org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/ChangeLog b/core/org.eclipse.cdt.core/ChangeLog index 5cc0acc1beb..007e893d610 100644 --- a/core/org.eclipse.cdt.core/ChangeLog +++ b/core/org.eclipse.cdt.core/ChangeLog @@ -1,3 +1,7 @@ +2006-08-17 Thomas Fletcher + PR 85264 from James Blackburn + * org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java + 2006-08-17 Thomas Fletcher PR 149428 modified from James Blackburn * utils/org/eclipse/cdt/internal/core/model/CModelManager.java diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java index bcc2c07cec9..769d505cbb7 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * James Blackburn - Patch for PR 85264 *******************************************************************************/ package org.eclipse.cdt.internal.errorparsers; @@ -32,7 +33,7 @@ public class GCCErrorParser extends AbstractErrorParser { new ErrorPattern(": note:"), new ErrorPattern("instantiated from here"), // The following are not... - new ErrorPattern("(.*?):([0-9]+):([0-9]+:)? ((warning: )?.*)", 1, 2, 4, 0, 0) { + new ErrorPattern("(.*?):([0-9]+):([0-9]+:)? ((.*?[Ww]arning)?.*)", 1, 2, 4, 0, 0) { public String getVarName(Matcher matcher) { String desc = getDesc(matcher); Matcher varMatcher = null;