diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2010-08-23 11:18:39 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2010-08-23 11:18:39 -0500 |
commit | ac575a9d8242d4ff8e40ac25f2fd5862ef551ad7 (patch) | |
tree | 8a2dc5fa815d98c970c370f155d5747d3fa2ddff /src/sim/serialize.cc | |
parent | 7d191366e1b8c3efaf2a08b26483bca82c00e4de (diff) | |
download | gem5-ac575a9d8242d4ff8e40ac25f2fd5862ef551ad7.tar.xz |
Compiler: Fixes for GCC 4.5.
Diffstat (limited to 'src/sim/serialize.cc')
-rw-r--r-- | src/sim/serialize.cc | 4 |
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 §ion, 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 §ion, // 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 \""); |