From 8d04e32a834c28cea19d748bfe68d1aa0f593898 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Wed, 13 Aug 2014 06:57:29 -0400 Subject: [PATCH] power: Remove unused private members to fix compile-time warning Certain versions of clang complain about unused private members if they are not used. This changeset removes such members from the POWER-specific ProcessInfo struct to silence the warning. --- src/arch/power/stacktrace.cc | 1 - src/arch/power/stacktrace.hh | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/arch/power/stacktrace.cc b/src/arch/power/stacktrace.cc index 5fcb6342c..315cf0ae5 100644 --- a/src/arch/power/stacktrace.cc +++ b/src/arch/power/stacktrace.cc @@ -38,7 +38,6 @@ using namespace std; namespace PowerISA { ProcessInfo::ProcessInfo(ThreadContext *_tc) - : tc(_tc) { panic("ProcessInfo constructor not implemented.\n"); } diff --git a/src/arch/power/stacktrace.hh b/src/arch/power/stacktrace.hh index 72a66e5bd..65badad24 100644 --- a/src/arch/power/stacktrace.hh +++ b/src/arch/power/stacktrace.hh @@ -47,15 +47,6 @@ namespace PowerISA class ProcessInfo { - private: - ThreadContext *tc; - - int thread_info_size; - int task_struct_size; - int task_off; - int pid_off; - int name_off; - public: ProcessInfo(ThreadContext *_tc); -- 2.30.2