Skip to content

Commit 94d6b1c

Browse files
[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]
1 parent 5cd3e97 commit 94d6b1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang-tools-extra/clangd/XRefs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,8 @@ outgoingCalls(const CallHierarchyItem &Item, const SymbolIndex *Index) {
23632363
Kind == SK::ClassMethod || Kind == SK::StaticMethod ||
23642364
Kind == SK::Constructor || Kind == SK::Destructor ||
23652365
Kind == SK::ConversionFunction);
2366+
(void)Kind;
2367+
(void)SK::Function;
23662368

23672369
auto It = CallsOut.find(Callee.ID);
23682370
assert(It != CallsOut.end());

0 commit comments

Comments
 (0)