sim: Fix clang warning for unused variable

This patch ensures the NULL ISA can build without causing issues with
an unused variable.
This commit is contained in:
Andreas Hansson 2013-09-05 13:53:54 -04:00
parent 3b90f52b61
commit 53cf77cf18

View file

@ -380,7 +380,7 @@ class System : public MemObject
T *addFuncEvent(const SymbolTable *symtab, const char *lbl,
const std::string &desc, Args... args)
{
Addr addr = 0; // initialize only to avoid compiler warning
Addr addr M5_VAR_USED = 0; // initialize only to avoid compiler warning
#if THE_ISA != NULL_ISA
if (symtab->findAddress(lbl, addr)) {