diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-08-20 11:21:26 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-08-20 11:21:26 -0400 |
commit | c57c452143695f3e8e8ed2d311e4766a1c16ccc7 (patch) | |
tree | 8b9ee3cc6db94004f34764815471f0fddeda953c | |
parent | b63631536d974f31cf99ee280271dc0f7b4c746f (diff) | |
download | gem5-c57c452143695f3e8e8ed2d311e4766a1c16ccc7.tar.xz |
base: Fix VectorPrint initialisation
This patch changes how the initialisation of the VectorPrint struct is
done so that gcc 4.4 is happy again.
-rw-r--r-- | src/base/stats/text.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc index 3b06dc121..25b8cb2e7 100644 --- a/src/base/stats/text.cc +++ b/src/base/stats/text.cc @@ -249,7 +249,7 @@ struct VectorPrint int precision; VResult vec; Result total; - bool forceSubnames = false; + bool forceSubnames; void operator()(ostream &stream) const; }; @@ -513,6 +513,7 @@ Text::visit(const VectorInfo &info) print.precision = info.precision; print.vec = info.result(); print.total = info.total(); + print.forceSubnames = false; if (!info.subnames.empty()) { for (off_type i = 0; i < size; ++i) { |