forked from OSchip/llvm-project
parent
37e069c2ac
commit
101e490b1e
|
@ -230,9 +230,9 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
|
||||||
m_compiler->getCodeGenOpts().setDebugInfo(CodeGenOptions::NoDebugInfo);
|
m_compiler->getCodeGenOpts().setDebugInfo(CodeGenOptions::NoDebugInfo);
|
||||||
|
|
||||||
// Disable some warnings.
|
// Disable some warnings.
|
||||||
m_compiler->getDiagnostics().setSeverityForGroup(
|
m_compiler->getDiagnostics().setSeverityForGroup(clang::diag::Flavor::WarningOrError,
|
||||||
"unused-value", clang::diag::Severity::Ignored, SourceLocation());
|
"unused-value", clang::diag::Severity::Ignored, SourceLocation());
|
||||||
m_compiler->getDiagnostics().setSeverityForGroup(
|
m_compiler->getDiagnostics().setSeverityForGroup(clang::diag::Flavor::WarningOrError,
|
||||||
"odr", clang::diag::Severity::Ignored, SourceLocation());
|
"odr", clang::diag::Severity::Ignored, SourceLocation());
|
||||||
|
|
||||||
// Inform the target of the language options
|
// Inform the target of the language options
|
||||||
|
|
Loading…
Reference in New Issue