mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-23 07:52:06 +00:00
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:
parent
0d43e1688a
commit
39e9149d8e
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user