From 904784fb1e15f0c090fb1f1e5c5057e74b0b4ea8 Mon Sep 17 00:00:00 2001 From: Tommaso Marinelli Date: Tue, 10 Sep 2019 13:21:39 +0200 Subject: [PATCH] stats: Add M5_VAR_USED to variable Fixes compile error for gem5.fast due to unused variable. Change-Id: Ib1664b100e95a741174610f8cdbdebaff9635f66 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20759 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Maintainer: Jason Lowe-Power Maintainer: Andreas Sandberg Tested-by: kokoro --- src/base/stats/group.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/stats/group.cc b/src/base/stats/group.cc index 2bfc89d00..b1504275a 100644 --- a/src/base/stats/group.cc +++ b/src/base/stats/group.cc @@ -70,7 +70,8 @@ Group::regStats() for (auto &g : statGroups) { if (DTRACE(Stats)) { - const SimObject *so = dynamic_cast(this); + const SimObject M5_VAR_USED *so = + dynamic_cast(this); DPRINTF(Stats, "%s: regStats in group %s\n", so ? so->name() : "?", g.first); -- 2.30.2