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.
This commit is contained in:
Andreas Hansson 2013-03-07 05:55:02 -05:00
parent c4645c0d68
commit 92e973b310

View file

@ -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;
}