From 53cf77cf18fa44ed60ad586fb9add661853b205a Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 5 Sep 2013 13:53:54 -0400 Subject: [PATCH] sim: Fix clang warning for unused variable This patch ensures the NULL ISA can build without causing issues with an unused variable. --- src/sim/system.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {