Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-10-15 02:44:36 +0000
committerSergey Prigogin2011-10-15 02:44:36 +0000
commit72db9fbe930226dbc6af44870a868af01814146c (patch)
treece67669028244bb953c1ef8f95eb80696a17b805
parentca69e0b6e9f8cb83eb71e2f60349640aba558354 (diff)
downloadorg.eclipse.cdt-72db9fbe930226dbc6af44870a868af01814146c.tar.gz
org.eclipse.cdt-72db9fbe930226dbc6af44870a868af01814146c.tar.xz
org.eclipse.cdt-72db9fbe930226dbc6af44870a868af01814146c.zip
Fixed broken tests.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java
index 4d20d06394f..3b3eeb9d3c4 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java
@@ -1822,7 +1822,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
}
PreprocessorMacro macro= fMacroDictionary.get(name);
if (macro == null) {
- if ((options & IGNORE_UNDEFINED_SIGNIFICANT_MACROS) == 0)
+ if (reportSignificant && (options & IGNORE_UNDEFINED_SIGNIFICANT_MACROS) == 0)
fCurrentContext.significantMacroUndefined(name);
return false;
}

Back to the top