From: Andreas Sandberg Date: Wed, 13 Aug 2014 10:57:29 +0000 (-0400) Subject: power: Remove unused private members to fix compile-time warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d04e32a834c28cea19d748bfe68d1aa0f593898;p=gem5.git 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. --- 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);