changeset d1e6329cd367 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=d1e6329cd367
description:
        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.

diffstat:

 src/mem/ruby/network/orion/Wire.cc |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 2a13ddb8bd0d -r d1e6329cd367 src/mem/ruby/network/orion/Wire.cc
--- a/src/mem/ruby/network/orion/Wire.cc        Thu Mar 07 05:55:01 2013 -0500
+++ b/src/mem/ruby/network/orion/Wire.cc        Thu Mar 07 05:55:02 2013 -0500
@@ -118,6 +118,14 @@
                             
(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;
 }
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to