diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-10-13 23:47:31 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-10-13 23:47:31 -0400 |
commit | 2a1350e1682e3423718ae07e65855a1c3247105e (patch) | |
tree | 44325ea90e303f08ca33fa131f4424c5cf56d235 /sim/system.hh | |
parent | 67b807d90738e238a617e818a2d13c6cf2161a6d (diff) | |
download | gem5-2a1350e1682e3423718ae07e65855a1c3247105e.tar.xz |
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
Diffstat (limited to 'sim/system.hh')
-rw-r--r-- | sim/system.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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)); |