Author: uabelho
Date: Fri Nov 30 05:38:33 2018
New Revision: 347987
URL: http://llvm.org/viewvc/llvm-project?rev=347987&view=rev
Log:
Fix warning about unused variable [NFC]
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp?rev=347987&r1=347986&r2=347987&view=diff
==============================================================================
---
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
(original)
+++
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
Fri Nov 30 05:38:33 2018
@@ -137,7 +137,7 @@ static void generateDiagnosticsForCallLi
} else {
os << "function call";
}
- } else if (const auto *NE = dyn_cast<CXXNewExpr>(S)){
+ } else if (isa<CXXNewExpr>(S)){
os << "Operator new";
} else {
assert(isa<ObjCMessageExpr>(S));
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits