[Lldb-commits] [lldb] r178399 - Disable warnings from Clang correctly, by directly
Sean Callanan
scallanan at apple.com
Fri Mar 29 18:26:06 PDT 2013
Author: spyffe
Date: Fri Mar 29 20:26:06 2013
New Revision: 178399
URL: http://llvm.org/viewvc/llvm-project?rev=178399&view=rev
Log:
Disable warnings from Clang correctly, by directly
manipulating the diagnostics engine.
<rdar://problem/13508470>
Modified:
lldb/trunk/source/Expression/ClangExpressionParser.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=178399&r1=178398&r2=178399&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Fri Mar 29 20:26:06 2013
@@ -321,8 +321,8 @@ ClangExpressionParser::ClangExpressionPa
m_compiler->getCodeGenOpts().InstrumentFunctions = false;
// Disable some warnings.
- m_compiler->getDiagnosticOpts().Warnings.push_back("no-unused-value");
- m_compiler->getDiagnosticOpts().Warnings.push_back("no-odr");
+ m_compiler->getDiagnostics().setDiagnosticGroupMapping("unused-value", clang::diag::MAP_IGNORE, SourceLocation());
+ m_compiler->getDiagnostics().setDiagnosticGroupMapping("odr", clang::diag::MAP_IGNORE, SourceLocation());
// Inform the target of the language options
//
More information about the lldb-commits
mailing list