From 2c07222ef6e95c95f09db7da1a014bcc8fb845a6 Mon Sep 17 00:00:00 2001 From: torsten Date: Thu, 20 Aug 2009 08:41:21 +0000 Subject: [PATCH] warning fixes --- simgear/math/SGGeodesy.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/math/SGGeodesy.cxx b/simgear/math/SGGeodesy.cxx index 05d76f0e..e42ce1e3 100644 --- a/simgear/math/SGGeodesy.cxx +++ b/simgear/math/SGGeodesy.cxx @@ -57,7 +57,7 @@ const double SGGeodesy::POLRAD = _POLRAD; #define E2 fabs(1 - _SQUASH*_SQUASH) static double a = _EQURAD; static double ra2 = 1/(_EQURAD*_EQURAD); -static double e = sqrt(E2); +//static double e = sqrt(E2); static double e2 = E2; static double e4 = E2*E2; @@ -315,7 +315,7 @@ static int _geo_inverse_wgs_84( double lat1, double lon1, double lat2, double sinphi2 = sin(phi2), cosphi2 = cos(phi2); if( (fabs(lat1-lat2) < testv && - ( fabs(lon1-lon2) < testv) || fabs(lat1-90.0) < testv ) ) + ( fabs(lon1-lon2) < testv)) || (fabs(lat1-90.0) < testv ) ) { // TWO STATIONS ARE IDENTICAL : SET DISTANCE & AZIMUTHS TO ZERO */ *az1 = 0.0; *az2 = 0.0; *s = 0.0; -- 2.39.5