summaryrefslogtreecommitdiff
path: root/src/sim/system.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-09-05 13:53:54 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-09-05 13:53:54 -0400
commit53cf77cf18fa44ed60ad586fb9add661853b205a (patch)
treee77e52586184e69145cd5f8be1ed551909b84ea0 /src/sim/system.hh
parent3b90f52b6155e038089c8816beb8498cacdf9f9e (diff)
downloadgem5-53cf77cf18fa44ed60ad586fb9add661853b205a.tar.xz
sim: Fix clang warning for unused variable
This patch ensures the NULL ISA can build without causing issues with an unused variable.
Diffstat (limited to 'src/sim/system.hh')
-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)) {