Use the new interface, instead.
This commit is contained in:
parent
4205ca7350
commit
1a68292a33
@ -959,12 +959,12 @@ namespace cling {
|
||||
// #pragma warning ignore ...
|
||||
// #pragma warning ignore ...
|
||||
// #pragma warning pop
|
||||
SourceLocation Loc = m_IncrParser->getLastMemoryBufferEndLoc();
|
||||
SourceLocation Loc = getNextAvailableLoc();
|
||||
DiagnosticsEngine& Diags = getCI()->getDiagnostics();
|
||||
Diags.pushMappings(Loc);
|
||||
// The source locations of #pragma warning ignore must be greater than
|
||||
// the ones from #pragma push
|
||||
Loc = Loc.getLocWithOffset(1);
|
||||
//Loc = Loc.getLocWithOffset(1);
|
||||
Diags.setSeverity(clang::diag::warn_unused_expr,
|
||||
clang::diag::Severity::Ignored, Loc);
|
||||
Diags.setSeverity(clang::diag::warn_unused_call,
|
||||
|
Loading…
x
Reference in New Issue
Block a user