Skip to content

Commit

Permalink
Fix GCC Parsing Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-oao authored Jan 9, 2025
1 parent 207d966 commit c8c079e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Gcc4CompilerParser extends LookaheadParser {
private static final long serialVersionUID = 5490211629355204910L;

private static final String GCC_WARNING_PATTERN =
"(?!\\[javac\\])" + ANT_TASK + "(.+?):(\\d+):(?:(\\d+):)? ?([wW]arning|.*[Ee]rror): (.*)$";
ANT_TASK + "(.+?):(\\d+):(?:(\\d+):)? ?([wW]arning|.*[Ee]rror): (.*)$";
private static final Pattern CLASS_PATTERN = Pattern.compile("\\[-W(.+)]$");

/**
Expand All @@ -43,7 +43,7 @@ public Gcc4CompilerParser() {

@Override
protected boolean isLineInteresting(final String line) {
return line.contains("arning") || line.contains("rror");
return (line.contains("arning") || line.contains("rror")) && !line.contains("[javac]");
}

@Override
Expand Down

0 comments on commit c8c079e

Please sign in to comment.