cpu: fixed unused variable on fast binary
authorAndrea Mondelli <andrea.mondelli@huawei.com>
Mon, 18 May 2020 17:50:33 +0000 (01:50 +0800)
committerAndrea Mondelli <Andrea.Mondelli@huawei.com>
Tue, 19 May 2020 11:29:29 +0000 (11:29 +0000)
commitfd580041fe62e51f2386af5be0ad92e735ba1e24
treed1014abbab9e4bcaf80bc2733cb65367ab1e68e0
parent2b63ba5700cd2dc6f2aaf34184aceb93e610dbba
cpu: fixed unused variable on fast binary

When gem5.fast is compiled, an error on a variable
used only for debug purposes is raised:

build/X86/cpu/o3/mem_dep_unit_impl.hh:262:19: error: unused variable 'producing_store' [-Werror=unused-variable]
         for (auto producing_store : producing_stores)

This patch remove the variable when *.fast is used.

Change-Id: Ib77c26073db39644e3525bc16edcb7d3bc871d76
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29252
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
src/cpu/o3/mem_dep_unit_impl.hh