summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sim/system.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh
index 5b166eabf..c8945c8c1 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -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)) {