From ac575a9d8242d4ff8e40ac25f2fd5862ef551ad7 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 23 Aug 2010 11:18:39 -0500 Subject: Compiler: Fixes for GCC 4.5. --- src/sim/serialize.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sim/serialize.cc') 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 \""); -- cgit v1.2.3