From: Nathan Binkert Date: Mon, 9 May 2011 20:34:11 +0000 (-0400) Subject: work around gcc 4.5 warning X-Git-Tag: stable_2012_02_02~330 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c4c1419a7d83e9bc39c94aa0a37dd1bbbecc38d;p=gem5.git work around gcc 4.5 warning --- 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);