Author: uabelho Date: Wed Oct 17 23:00:39 2018 New Revision: 344724 URL: http://llvm.org/viewvc/llvm-project?rev=344724&view=rev Log: Fix warning about unused variable [NFC]
Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=344724&r1=344723&r2=344724&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original) +++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Wed Oct 17 23:00:39 2018 @@ -562,7 +562,7 @@ getQueryScopes(CodeCompletionContext &CC for (auto *Context : CCContext.getVisitedContexts()) { if (isa<TranslationUnitDecl>(Context)) Info.AccessibleScopes.push_back(""); // global namespace - else if (const auto *NS = dyn_cast<NamespaceDecl>(Context)) + else if (isa<NamespaceDecl>(Context)) Info.AccessibleScopes.push_back(printNamespaceScope(*Context)); } return Info; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits