From 9c4c1419a7d83e9bc39c94aa0a37dd1bbbecc38d Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 9 May 2011 16:34:11 -0400 Subject: [PATCH] work around gcc 4.5 warning --- src/cpu/inorder/resource_pool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/inorder/resource_pool.cc b/src/cpu/inorder/resource_pool.cc index 263512611..1800aac37 100644 --- a/src/cpu/inorder/resource_pool.cc +++ b/src/cpu/inorder/resource_pool.cc @@ -260,7 +260,7 @@ ResourcePool::scheduleEvent(InOrderCPU::CPUEventType e_type, DynInstPtr inst, Tick when = cpu->nextCycle(curTick() + cpu->ticks(delay)); - switch (e_type) + switch ((int)e_type) { case InOrderCPU::ActivateThread: { @@ -505,7 +505,7 @@ ResourcePool::ResPoolEvent::ResPoolEvent(ResourcePool *_resPool, void ResourcePool::ResPoolEvent::process() { - switch (eventType) + switch ((int)eventType) { case InOrderCPU::ActivateThread: resPool->activateAll(tid); -- 2.30.2