[Lldb-commits] [lldb] 5f35f06 - [lldb] Fix warnings

Kazu Hirata via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 23 20:46:21 PDT 2025


Author: Kazu Hirata
Date: 2025-07-23T20:46:14-07:00
New Revision: 5f35f06e5f50f5e2797cebf1e6204e1a15fc83bc

URL: https://github.com/llvm/llvm-project/commit/5f35f06e5f50f5e2797cebf1e6204e1a15fc83bc
DIFF: https://github.com/llvm/llvm-project/commit/5f35f06e5f50f5e2797cebf1e6204e1a15fc83bc.diff

LOG: [lldb] Fix warnings

This patch fixes:

  lldb/tools/lldb-rpc-gen/RPCCommon.cpp:197:13: error: unused variable
  'CheckTypeForLLDBPrivate' [-Werror,-Wunused-variable]

  lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp:105:18: error: unused
  variable 'HasCallbackParameter' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    lldb/tools/lldb-rpc-gen/RPCCommon.cpp
    lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/tools/lldb-rpc-gen/RPCCommon.cpp b/lldb/tools/lldb-rpc-gen/RPCCommon.cpp
index 34791fa8ef231..6f0abe4b1ae87 100644
--- a/lldb/tools/lldb-rpc-gen/RPCCommon.cpp
+++ b/lldb/tools/lldb-rpc-gen/RPCCommon.cpp
@@ -194,7 +194,6 @@ std::string lldb_rpc_gen::GetMangledName(ASTContext &Context,
   return Mangled;
 }
 
-static auto CheckTypeForLLDBPrivate = [](const Type *Ty) {};
 bool lldb_rpc_gen::TypeIsFromLLDBPrivate(QualType T) {
   auto CheckTypeForLLDBPrivate = [](const Type *Ty) {
     if (!Ty)

diff  --git a/lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp b/lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp
index fdcfee96a387e..9b48796a30be5 100644
--- a/lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp
+++ b/lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp
@@ -102,8 +102,6 @@ class SBVisitor : public RecursiveASTVisitor<SBVisitor> {
           lldb_rpc_gen::GetMangledName(Context, MDecl);
       const bool IsDisallowed =
           lldb_rpc_gen::MethodIsDisallowed(Context, MDecl);
-      const bool HasCallbackParameter =
-          lldb_rpc_gen::HasCallbackParameter(MDecl);
       SupportLevel MethodSupportLevel = GetMethodSupportLevel(MDecl);
       if (MethodSupportLevel == eImplemented && !IsDisallowed) {
         const lldb_rpc_gen::Method Method(MDecl, Policy, Context);


        


More information about the lldb-commits mailing list