From: Gabe Black Date: Tue, 7 Jun 2011 07:24:49 +0000 (-0700) Subject: gcc 4.0: Add some virtual destructors to make gcc 4.0 happy. X-Git-Tag: stable_2012_02_02~286 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a59a143a25bdc7d794cdcc8ebb6e8d2f37903015;p=gem5.git gcc 4.0: Add some virtual destructors to make gcc 4.0 happy. --- diff --git a/src/base/stats/output.hh b/src/base/stats/output.hh index d45e32f77..26c4c5bbd 100644 --- a/src/base/stats/output.hh +++ b/src/base/stats/output.hh @@ -46,6 +46,7 @@ class FormulaInfo; struct Output { + virtual ~Output() {} virtual void begin() = 0; virtual void end() = 0; virtual bool valid() const = 0; diff --git a/src/cpu/inorder/resource_pool.hh b/src/cpu/inorder/resource_pool.hh index 9d9439665..b42011091 100644 --- a/src/cpu/inorder/resource_pool.hh +++ b/src/cpu/inorder/resource_pool.hh @@ -122,7 +122,7 @@ class ResourcePool { public: ResourcePool(InOrderCPU *_cpu, ThePipeline::Params *params); - ~ResourcePool(); + virtual ~ResourcePool(); std::string name();