Fix unused variable, format, and format string warnings.

NFC.
This commit is contained in:
Eric Christopher 2020-04-03 17:58:59 -07:00
parent 725579379d
commit 3ccd454c10
5 changed files with 3 additions and 9 deletions

View File

@ -125,7 +125,7 @@ public:
void AddThread(Thread &thread) {
lldb::tid_t tid = thread.GetID();
auto result = m_plans_list.emplace(tid, thread);
m_plans_list.emplace(tid, thread);
}
bool RemoveTID(lldb::tid_t tid) {

View File

@ -2061,7 +2061,6 @@ public:
return true;
}
bool success;
const size_t num_args = args.GetArgumentCount();
std::lock_guard<std::recursive_mutex> guard(

View File

@ -24,7 +24,7 @@ ThreadPlan::ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread,
: m_process(*thread.GetProcess().get()), m_tid(thread.GetID()),
m_stop_vote(stop_vote), m_run_vote(run_vote),
m_takes_iteration_count(false), m_could_not_resolve_hw_bp(false),
m_kind(kind), m_thread(&thread), m_name(name), m_plan_complete_mutex(),
m_thread(&thread), m_kind(kind), m_name(name), m_plan_complete_mutex(),
m_cached_plan_explains_stop(eLazyBoolCalculate), m_plan_complete(false),
m_plan_private(false), m_okay_to_discard(true), m_is_master_plan(false),
m_plan_succeeded(true) {

View File

@ -39,9 +39,6 @@ ThreadPlanStack::ThreadPlanStack(const Thread &thread, bool make_null) {
void ThreadPlanStack::DumpThreadPlans(Stream &s,
lldb::DescriptionLevel desc_level,
bool include_internal) const {
uint32_t stack_size;
s.IndentMore();
PrintOneStack(s, "Active plan stack", m_plans, desc_level, include_internal);
PrintOneStack(s, "Completed plan stack", m_completed_plans, desc_level,
@ -73,7 +70,7 @@ void ThreadPlanStack::PrintOneStack(Stream &s, llvm::StringRef stack_name,
if (include_internal || any_public) {
int print_idx = 0;
s.Indent();
s.Printf("%s:\n", stack_name);
s << stack_name << ":\n";
for (auto plan : stack) {
if (!include_internal && plan->GetPrivate())
continue;
@ -270,7 +267,6 @@ lldb::ThreadPlanSP ThreadPlanStack::GetCompletedPlan(bool skip_private) const {
lldb::ThreadPlanSP ThreadPlanStack::GetPlanByIndex(uint32_t plan_idx,
bool skip_private) const {
uint32_t idx = 0;
ThreadPlan *up_to_plan_ptr = nullptr;
for (lldb::ThreadPlanSP plan_sp : m_plans) {
if (skip_private && plan_sp->GetPrivate())

View File

@ -86,7 +86,6 @@ void ThreadPlanStepRange::AddRange(const AddressRange &new_range) {
}
void ThreadPlanStepRange::DumpRanges(Stream *s) {
Thread &thread = GetThread();
size_t num_ranges = m_address_ranges.size();
if (num_ranges == 1) {
m_address_ranges[0].Dump(s, &GetTarget(), Address::DumpStyleLoadAddress);