Skip to main content
summaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorSamuel Hultgren2018-04-12 07:47:16 -0400
committerSamuel Hultgren2018-04-17 04:49:38 -0400
commit40daa34fdae211b842e79f20d03e9c0fcf2d1349 (patch)
tree21ea8fb6febfc31bd4ba5895b214b69d6ac2888c /launch
parent103f4cba4cdc3a1422a9df4dbacbbce4f06cfb00 (diff)
downloadorg.eclipse.cdt-40daa34fdae211b842e79f20d03e9c0fcf2d1349.tar.gz
org.eclipse.cdt-40daa34fdae211b842e79f20d03e9c0fcf2d1349.tar.xz
org.eclipse.cdt-40daa34fdae211b842e79f20d03e9c0fcf2d1349.zip
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>
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java
index c9a6ac2459..03d8450e58 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java
@@ -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;
}
}
}

Back to the top