projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b90f52
)
sim: Fix clang warning for unused variable
author
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 5 Sep 2013 17:53:54 +0000
(13:53 -0400)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 5 Sep 2013 17:53:54 +0000
(13:53 -0400)
This patch ensures the NULL ISA can build without causing issues with
an unused variable.
src/sim/system.hh
patch
|
blob
|
history
diff --git
a/src/sim/system.hh
b/src/sim/system.hh
index 5b166eabf31f3603ccbd15433554fcc68f3ecaae..c8945c8c12a21ca0e22df5d19db7733f93036104 100644
(file)
--- 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)) {