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:
parent
3b90f52b61
commit
53cf77cf18
|
@ -380,7 +380,7 @@ class System : public MemObject
|
||||||
T *addFuncEvent(const SymbolTable *symtab, const char *lbl,
|
T *addFuncEvent(const SymbolTable *symtab, const char *lbl,
|
||||||
const std::string &desc, Args... args)
|
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 THE_ISA != NULL_ISA
|
||||||
if (symtab->findAddress(lbl, addr)) {
|
if (symtab->findAddress(lbl, addr)) {
|
||||||
|
|
Loading…
Reference in a new issue