From 39e9149d8e12d77cd389f55860ac2cb9a30b4552 Mon Sep 17 00:00:00 2001 From: Karl-Johan Karlsson Date: Tue, 7 Apr 2020 08:16:35 +0200 Subject: [PATCH] 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] --- clang-tools-extra/clangd/Protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/Protocol.cpp b/clang-tools-extra/clangd/Protocol.cpp index cd8e6bc10dce..aa7b901da3f0 100644 --- a/clang-tools-extra/clangd/Protocol.cpp +++ b/clang-tools-extra/clangd/Protocol.cpp @@ -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"))