[clang-tools-extra] r307068 - ClangdServer.cpp: Suppress a warning. [-Wunused-lambda-capture]
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 4 05:12:14 PDT 2017
Author: chapuni
Date: Tue Jul 4 05:12:14 2017
New Revision: 307068
URL: http://llvm.org/viewvc/llvm-project?rev=307068&view=rev
Log:
ClangdServer.cpp: Suppress a warning. [-Wunused-lambda-capture]
Modified:
clang-tools-extra/trunk/clangd/ClangdServer.cpp
Modified: clang-tools-extra/trunk/clangd/ClangdServer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdServer.cpp?rev=307068&r1=307067&r2=307068&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdServer.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdServer.cpp Tue Jul 4 05:12:14 2017
@@ -258,6 +258,7 @@ std::string ClangdServer::dumpAST(PathRe
WorkScheduler.addToEnd([this, &DumpPromise, File, Version]() {
assert(DraftMgr.getVersion(File) == Version && "Version has changed");
+ (void)Version;
Units.runOnExistingUnit(File, [&DumpPromise](ClangdUnit &Unit) {
std::string Result;
More information about the cfe-commits
mailing list