diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-03-07 05:55:02 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-03-07 05:55:02 -0500 |
commit | 92e973b310a18508e51114abe936919df091fc38 (patch) | |
tree | 9cb95db3bb3414a1e1ec6ea5d5dd37634f718c0c | |
parent | c4645c0d68de84685a844a52a769431aa3edc6ad (diff) | |
download | gem5-92e973b310a18508e51114abe936919df091fc38.tar.xz |
ruby: Fix gcc 4.8 maybe-uninitialized compilation error
This patch fixes the one-and-only gcc 4.8 compilation error, being a
warning about "maybe uninitialized" in Orion.
-rw-r--r-- | src/mem/ruby/network/orion/Wire.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/ruby/network/orion/Wire.cc b/src/mem/ruby/network/orion/Wire.cc index ba78dd48e..3bbd615f3 100644 --- a/src/mem/ruby/network/orion/Wire.cc +++ b/src/mem/ruby/network/orion/Wire.cc @@ -118,6 +118,14 @@ void Wire::calc_opt_buffering( (1.4*1.5*BufferDriveResistance*c_c))/(0.7*r*BufferInputCapacitance)); break; } + default: + { + // make gcc happy although all the cases of the enum + // are already covered + *k_ = 0; + *h_ = 0; + break; + } } return; } |