projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b636315
)
base: Fix VectorPrint initialisation
author
Andreas Hansson
<andreas.hansson@arm.com>
Tue, 20 Aug 2013 15:21:26 +0000
(11:21 -0400)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Tue, 20 Aug 2013 15:21:26 +0000
(11:21 -0400)
This patch changes how the initialisation of the VectorPrint struct is
done so that gcc 4.4 is happy again.
src/base/stats/text.cc
patch
|
blob
|
history
diff --git
a/src/base/stats/text.cc
b/src/base/stats/text.cc
index 3b06dc121735830df389d9bbab99d375be527a81..25b8cb2e705a35552fb617315e1e1ad27d6286ba 100644
(file)
--- 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) {