summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2010-08-23 11:18:39 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2010-08-23 11:18:39 -0500
commitac575a9d8242d4ff8e40ac25f2fd5862ef551ad7 (patch)
tree8a2dc5fa815d98c970c370f155d5747d3fa2ddff /src/sim
parent7d191366e1b8c3efaf2a08b26483bca82c00e4de (diff)
downloadgem5-ac575a9d8242d4ff8e40ac25f2fd5862ef551ad7.tar.xz
Compiler: Fixes for GCC 4.5.
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/serialize.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc
index d6d5ac094..aa343d0e9 100644
--- a/src/sim/serialize.cc
+++ b/src/sim/serialize.cc
@@ -269,7 +269,7 @@ arrayParamIn(Checkpoint *cp, const string &section, const string &name,
// for which operator[] returns a special reference class
// that's not the same as 'bool&', (since it's a packed
// vector)
- T scalar_value;
+ T scalar_value = 0;
if (!parseParam(tokens[i], scalar_value)) {
string err("could not parse \"");
@@ -311,7 +311,7 @@ arrayParamIn(Checkpoint *cp, const string &section,
// for which operator[] returns a special reference class
// that's not the same as 'bool&', (since it's a packed
// vector)
- T scalar_value;
+ T scalar_value = 0;
if (!parseParam(tokens[i], scalar_value)) {
string err("could not parse \"");