Fix for g++ 4 warning... not sure why this is just popping up now.
sim/system.hh:
Fix for g++ 4.
--HG--
extra : convert_revision : e169220ba9ca34ebd4ba2bbafadf8de42f005812
This commit is contained in:
@@ -118,7 +118,7 @@ class System : public SimObject
|
||||
template <class T>
|
||||
T *System::addFuncEvent(SymbolTable *symtab, const char *lbl)
|
||||
{
|
||||
Addr addr;
|
||||
Addr addr = 0; // initialize only to avoid compiler warning
|
||||
|
||||
if (symtab->findAddress(lbl, addr)) {
|
||||
T *ev = new T(&pcEventQueue, lbl, fixFuncEventAddr(addr));
|
||||
|
||||
Reference in New Issue
Block a user