diff --git a/simgear/math/SGSphere.hxx b/simgear/math/SGSphere.hxx index 7d6a8d3c..26649e1b 100644 --- a/simgear/math/SGSphere.hxx +++ b/simgear/math/SGSphere.hxx @@ -22,7 +22,11 @@ template class SGSphere { public: SGSphere() : - _center(0.0, 0.0, 0.0), + /* + * Do not initialize _center to save unneeded initialization time. + * Fix 'may be used uninitialized' warnings locally instead + */ +// _center(0.0, 0.0, 0.0), _radius(-1) { } SGSphere(const SGVec3& center, const T& radius) :