From 4faf727f1b6f0e5167116334b85228981325a417 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Tue, 20 Dec 2011 10:00:33 +0100 Subject: [PATCH] Do not initialize _center to save unneeded initialization time. --- simgear/math/SGSphere.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) : -- 2.39.5