diff --git a/sim/system.hh b/sim/system.hh index c4ecc9458..8cfe790de 100644 --- a/sim/system.hh +++ b/sim/system.hh @@ -118,7 +118,7 @@ class System : public SimObject template 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));