projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4645c0
)
ruby: Fix gcc 4.8 maybe-uninitialized compilation error
author
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 7 Mar 2013 10:55:02 +0000
(
05:55
-0500)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 7 Mar 2013 10:55:02 +0000
(
05:55
-0500)
This patch fixes the one-and-only gcc 4.8 compilation error, being a
warning about "maybe uninitialized" in Orion.
src/mem/ruby/network/orion/Wire.cc
patch
|
blob
|
history
diff --git
a/src/mem/ruby/network/orion/Wire.cc
b/src/mem/ruby/network/orion/Wire.cc
index ba78dd48e2837edd12b36bfba9a16e7e0be1df7a..3bbd615f3cf141e489207628f8d7db94289e5909 100644
(file)
--- 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;
}