From: Steve Reinhardt Date: Fri, 14 Oct 2005 03:47:31 +0000 (-0400) Subject: Fix for g++ 4 warning... not sure why this is just popping up now. X-Git-Tag: m5_2.0_beta1~339 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a1350e1682e3423718ae07e65855a1c3247105e;p=gem5.git 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 --- 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));