[clang-tools-extra] 94d6b1c - [clangd] Fix warnings
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 23:18:04 PST 2024
Author: Kazu Hirata
Date: 2024-12-03T23:17:57-08:00
New Revision: 94d6b1cce5bb9449971a027e352385e72b059a3a
URL: https://github.com/llvm/llvm-project/commit/94d6b1cce5bb9449971a027e352385e72b059a3a
DIFF: https://github.com/llvm/llvm-project/commit/94d6b1cce5bb9449971a027e352385e72b059a3a.diff
LOG: [clangd] Fix warnings
This patch fixes:
clang-tools-extra/clangd/XRefs.cpp:2360:11: error: unused type alias
'SK' [-Werror,-Wunused-local-typedef]
clang-tools-extra/clangd/XRefs.cpp:2361:10: error: unused variable
'Kind' [-Werror,-Wunused-variable]
Added:
Modified:
clang-tools-extra/clangd/XRefs.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/XRefs.cpp b/clang-tools-extra/clangd/XRefs.cpp
index d237d95b3eb655..8295b9d541f7ef 100644
--- a/clang-tools-extra/clangd/XRefs.cpp
+++ b/clang-tools-extra/clangd/XRefs.cpp
@@ -2363,6 +2363,8 @@ outgoingCalls(const CallHierarchyItem &Item, const SymbolIndex *Index) {
Kind == SK::ClassMethod || Kind == SK::StaticMethod ||
Kind == SK::Constructor || Kind == SK::Destructor ||
Kind == SK::ConversionFunction);
+ (void)Kind;
+ (void)SK::Function;
auto It = CallsOut.find(Callee.ID);
assert(It != CallsOut.end());
More information about the cfe-commits
mailing list