ruby: Add M5_VAR_USED before variables used only inside assert in garnet2.0.

This removes errors when building gem5.fast
This commit is contained in:
Tushar Krishna 2016-10-06 21:06:00 -04:00
parent dbe8892b76
commit 22e6f65d72

View file

@ -181,7 +181,7 @@ RoutingUnit::outportComputeXY(RouteInfo route,
{
PortDirection outport_dirn = "Unknown";
int num_rows = m_router->get_net_ptr()->getNumRows();
int M5_VAR_USED num_rows = m_router->get_net_ptr()->getNumRows();
int num_cols = m_router->get_net_ptr()->getNumCols();
assert(num_rows > 0 && num_cols > 0);
@ -238,4 +238,5 @@ RoutingUnit::outportComputeCustom(RouteInfo route,
PortDirection inport_dirn)
{
assert(0);
return -1;
}