From 9f356ddec88e0e49804e14ff2fafcf125da17481 Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Thu, 23 Aug 2018 10:59:49 +0000 Subject: [PATCH] Removed unused variable [NFC] The compiler warned: ../tools/clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp:329:19: error: unused variable 'MD' [-Werror,-Wunused-variable] if (const auto *MD = dyn_cast(FD)) { ^ 1 error generated. llvm-svn: 340524 --- clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp b/clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp index 4370daa244ee..e92b81deb97d 100644 --- a/clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp +++ b/clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp @@ -326,7 +326,7 @@ RetainSummaryManager::generateSummary(const FunctionDecl *FD, } } - if (const auto *MD = dyn_cast(FD)) { + if (dyn_cast(FD)) { // Stop tracking arguments passed to C++ methods, as those might be // wrapping smart pointers.