diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-09-05 13:53:54 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-09-05 13:53:54 -0400 |
commit | 53cf77cf18fa44ed60ad586fb9add661853b205a (patch) | |
tree | e77e52586184e69145cd5f8be1ed551909b84ea0 /src/sim | |
parent | 3b90f52b6155e038089c8816beb8498cacdf9f9e (diff) | |
download | gem5-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')
-rw-r--r-- | src/sim/system.hh | 2 |
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)) { |