Warnings eliminated.

Variables initialized.

Variables removed with small changes in the code accordingly.

Some warnings suppressed with __attribute__((unused)).
This commit is contained in:
Éder Ferreira Zulian
2015-04-24 11:20:44 +02:00
parent 6cf6c6be95
commit 18025343cd
4 changed files with 11 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ bool RefreshManager::hasCollision(const ScheduledCommand& command)
return command.getStart() < controllerCore.state.getLastCommand(Command::AutoRefresh).getEnd() || command.getEnd() > nextPlannedRefresh;
}
void RefreshManager::scheduleRefresh(tlm::tlm_generic_payload& payload, sc_time time)
void RefreshManager::scheduleRefresh(tlm::tlm_generic_payload& payload __attribute((unused)), sc_time time)
{
sc_assert(!isInvalidated(payload, time));
@@ -78,7 +78,7 @@ void RefreshManager::reInitialize(Bank /*bank*/, sc_time time)
planNextRefresh();
}
bool RefreshManager::isInvalidated(tlm::tlm_generic_payload& payload, sc_time time)
bool RefreshManager::isInvalidated(tlm::tlm_generic_payload& payload __attribute((unused)), sc_time time)
{
return nextPlannedRefresh > time;
}