From a59a143a25bdc7d794cdcc8ebb6e8d2f37903015 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 7 Jun 2011 00:24:49 -0700 Subject: [PATCH] gcc 4.0: Add some virtual destructors to make gcc 4.0 happy. --- src/base/stats/output.hh | 1 + src/cpu/inorder/resource_pool.hh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.30.2