Skip to content

Commit 5f35f06

Browse files
[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]
1 parent 992118c commit 5f35f06

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ std::string lldb_rpc_gen::GetMangledName(ASTContext &Context,
194194
return Mangled;
195195
}
196196

197-
static auto CheckTypeForLLDBPrivate = [](const Type *Ty) {};
198197
bool lldb_rpc_gen::TypeIsFromLLDBPrivate(QualType T) {
199198
auto CheckTypeForLLDBPrivate = [](const Type *Ty) {
200199
if (!Ty)

lldb/tools/lldb-rpc-gen/lldb-rpc-gen.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ class SBVisitor : public RecursiveASTVisitor<SBVisitor> {
102102
lldb_rpc_gen::GetMangledName(Context, MDecl);
103103
const bool IsDisallowed =
104104
lldb_rpc_gen::MethodIsDisallowed(Context, MDecl);
105-
const bool HasCallbackParameter =
106-
lldb_rpc_gen::HasCallbackParameter(MDecl);
107105
SupportLevel MethodSupportLevel = GetMethodSupportLevel(MDecl);
108106
if (MethodSupportLevel == eImplemented && !IsDisallowed) {
109107
const lldb_rpc_gen::Method Method(MDecl, Policy, Context);

0 commit comments

Comments
 (0)