diff options
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 07fab81137..0a7d92eb83 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -471,6 +471,8 @@ void Preprocessor::HandleIdentifier(Token &Identifier) { // If this is an extension token, diagnose its use. // We avoid diagnosing tokens that originate from macro definitions. - if (II.isExtensionToken() && Features.C99 && !DisableMacroExpansion) + // FIXME: This warning is disabled in cases where it shouldn't be, + // like "#define TY typeof", "TY(1) x". + if (II.isExtensionToken() && !DisableMacroExpansion) Diag(Identifier, diag::ext_token_used); } |