changeset a317086a3e19 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a317086a3e19
description:
sim: Fix clang warning for unused variable
This patch ensures the NULL ISA can build without causing issues with
an unused variable.
diffstat:
src/sim/system.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e4a4cdfb1b81 -r a317086a3e19 src/sim/system.hh
--- a/src/sim/system.hh Wed Sep 04 13:23:00 2013 -0400
+++ b/src/sim/system.hh Thu Sep 05 13:53:54 2013 -0400
@@ -380,7 +380,7 @@
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)) {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev