From: Tommaso Marinelli Date: Tue, 10 Sep 2019 11:21:39 +0000 (+0200) Subject: stats: Add M5_VAR_USED to variable X-Git-Tag: v19.0.0.0~552 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=904784fb1e15f0c090fb1f1e5c5057e74b0b4ea8;p=gem5.git 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 --- 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);