1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 533499 - Check all problem markers for errors

Check all problem markers until one with severity Error or higher has
been found.

Change-Id: I7b44727eb1f323da75a7aa58bcea2ef307801adf
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
This commit is contained in:
Samuel Hultgren 2018-04-12 13:47:16 +02:00
parent 103f4cba4c
commit 40daa34fda

View file

@ -10,6 +10,7 @@
* James Blackburn (Broadcom Corp.)
* Marc Khouzam (Ericsson) - Modernize Run launch (bug 464636)
* Philip Langer (EclipseSource Services GmbH) - bug 506843
* Samuel Hultgren (STMicroelectronics) - bug 533499
*******************************************************************************/
package org.eclipse.cdt.launch;
@ -183,8 +184,8 @@ public abstract class AbstractCLaunchDelegate2 extends LaunchConfigurationDelega
if (markers.length > 0) {
for (IMarker marker : markers) {
Integer severity = (Integer)marker.getAttribute(IMarker.SEVERITY);
if (severity != null) {
return severity.intValue() >= IMarker.SEVERITY_ERROR;
if (severity != null && severity.intValue() >= IMarker.SEVERITY_ERROR) {
return true;
}
}
}