LdParser: Do not consider "first defined here" as an error

Change-Id: I01b27cd12776e22a5b52ceae4c89a4cd567c69ed
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-07-19 11:09:57 +03:00
committed by Orgad Shaneh
parent 9744c54580
commit 794ea51447

View File

@@ -106,8 +106,10 @@ void LdParser::stdError(const QString &line)
if (description.startsWith(QLatin1String("At global scope")) ||
description.startsWith(QLatin1String("At top level")) ||
description.startsWith(QLatin1String("instantiated from ")) ||
description.startsWith(QLatin1String("In ")))
description.startsWith(QLatin1String("In ")) ||
description.startsWith(QLatin1String("first defined here"))) {
task.type = Task::Unknown;
}
if (description.startsWith(QLatin1String("warning: "), Qt::CaseInsensitive)) {
task.type = Task::Warning;
task.description = description.mid(9);