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()); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits