Fix unused variable warning in Protocol.cpp, NFCI

Fixed gcc warning:
clang-tools-extra/clangd/Protocol.cpp:300:16: warning: unused variable 'SemanticHighlighting' [-Wunused-variable]
This commit is contained in:
Karl-Johan Karlsson 2020-04-07 08:16:35 +02:00
parent 0d43e1688a
commit 39e9149d8e

View File

@ -297,7 +297,7 @@ bool fromJSON(const llvm::json::Value &Params, ClientCapabilities &R) {
SemanticHighlighting->getBoolean("semanticHighlighting"))
R.TheiaSemanticHighlighting = *SemanticHighlightingSupport;
}
if (auto *SemanticHighlighting = TextDocument->getObject("semanticTokens"))
if (TextDocument->getObject("semanticTokens"))
R.SemanticTokens = true;
if (auto *Diagnostics = TextDocument->getObject("publishDiagnostics")) {
if (auto CategorySupport = Diagnostics->getBoolean("categorySupport"))